HOME HTML CSS JAVASCRIPT SQL PHP JQUERY XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

HTML DOM documentURI Property

Document Object Reference Document Object

Example

Get the location URI of the document:

document.documentURI;

The result will be:

http://www.w3schools.com/jsref/prop_document_documenturi.asp

Try it yourself »

Definition and Usage

The documentURI property sets or returns the location of a document.

If the document was created by the DocumentImplementation object, or if it is undefined, the return value is null.


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The documentURI property is supported in all major browsers, except Internet Explorer.


Syntax

Set the documentURI:

document.documentURI=locationURI

Return the documentURI:

document.documentURI

Technical Details

Return Value: A String, representing the URI of the document
DOM Version Core Level 3 Document Object


Document Object Reference Document Object


Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE