我們的志工尚未將此文章翻譯為 正體中文 (繁體) 版本。加入我們,幫忙翻譯!
The documentURI
property of the Document
interface returns the document location as a string.
As originally defined in DOM3 this attribute read/write. In the DOM4 specification it is read only.
Syntax
var string = document.documentURI;
Notes
HTML documents have a document.URL
property which returns the same value. Unlike URL
, documentURI
is available on all types of documents.
Specifications
Specification | Status | Comment |
---|---|---|
DOM4 The definition of 'documentURI' in that specification. |
Recommendation | |
Document Object Model (DOM) Level 3 Core Specification The definition of 'documentURI' in that specification. |
Recommendation | Initial definition |
Browser compatibility
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
DOM3 behavior | (Yes) | (Yes) | (Yes) | ? | (Yes) |
DOM4 behavior | 43.0 | (Yes) | No support | ? | No support |
Feature | Android | Firefox Mobile (Gecko) | Firefox OS | IE Mobile | Opera Mobile | Safari Mobile | Chrome for Android |
---|---|---|---|---|---|---|---|
DOM3 behavior | ? | ? | ? | ? | ? | ? | (Yes) |
DOM4 behavior | ? | ? | ? | ? | ? | ? | 43.0 |
文件標籤與貢獻者
標籤:
此頁面的貢獻者:
Sebastianz,
teoli,
jpmedley,
MHasan,
kscarfone,
nehasharma,
Sheppy,
ethertank,
Nickolay,
Jürgen Jeka,
vali29,
Matej Lednar
最近更新:
Sebastianz,