[Edge]。→、
Document の位置を文字列で返します。¶所在アドレス?
URI を表す文字列。
HTML:
<p id="urlText"> URL:<br/> <span id="url">URL goes here</span> </p>
JavaScript:
document.getElementById("url").textContent = document.documentURI;結果:
URL:
https://yari-demos.prod.mdn.mozit.cloud/ja/docs/Web/API/Document/documentURI/_sample_.Example.html