HTML DOM documentURIプロパティ

Document 对象参考手册Document オブジェクト

例

ドキュメントのローカルURIを取得:

document.documentURI;

出力結果:

http://www.w3cschool.cc/jsref/prop-document-documenturi.html

試してみる »

定義と用法

documentURI プロパティは、ドキュメントの場所を設定または返すことができます。

ドキュメントが DocumentImplementation オブジェクトによって作成された場合、または未定義の場合、返されます。null。


ブラウザーサポート

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Internet Explorer ブラウザーを除き、他のブラウザーは documentURI プロパティをサポートしています。


構文

ドキュメントの documentURI を設定:

document.documentURI=locationURI

documentURI を返す:

document.documentURI

技術詳細

戻り値: 文字列。ドキュメントのURIを表します。
DOM バージョン Core Level 3 Document Object


Document 对象参考手册Document オブジェクト

その他の拡張