Latest web development tutorials

HTML DOM documentURI property

Document Object Reference Document Object

Examples

Obtaining Documentation Local URI:

document.documentURI;

Output:

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

try it"

Definition and Usage

documentURI property sets or returns the location of the document.

If the document was created by DocumentImplementation object, or if it is not defined, it returns null.


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

In addition to Internet Explorer browser and other browsers support documentURI property.


grammar

Setting documentURI document:

document.documentURI= locationURI

Back documentURI:

document.documentURI

technical details

return value: String, URI representative of the document.
DOM version Core Level 3 Document Object


Document Object Reference Document Object