The documentURI
property sets or returns a document's location.
The documentURI
property returns null
if the document was created in memory.
The documentURI property can be used on any document types.
The document.URL property can only be used on HTML documents.
Return the documentURI property:
document.documentURI
Set the documentURI property:
document.documentURI =
locationURI
Type | Description |
String | The URI of the document. |
document.documentURI
is supported in all modern browsers:
Chrome | Edge | Firefox | Safari | Opera |
Yes | Yes | Yes | Yes | Yes |
document.documentURI
is not supported in Internet Explorer 11 (or earlier).
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!