HTML DOM Document documentURI
Definition and Usage
The documentURI
property sets or returns a document's location.
The documentURI
property returns null
if the document was created in memory.
Note
The documentURI property can be used on any document types.
The document.URL property can only be used on HTML documents.
See Also:
Syntax
Return the documentURI property:
document.documentURI
Set the documentURI property:
document.documentURI = locationURI
Property Value
Type | Description |
String | The URI of the document. |
Browser Support
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).