Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

XML DOM documentURI Property

XML DOM documentURI Property


Document Object Reference Document Object


Definition and Usage

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

Syntax

documentObject.documentURI


Example

The following code snippet uses loadXMLDoc() to load "books.xml" Load into xmlDoc, and display the location of the XML document:

Example

xmlDoc=loadXMLDoc("books.xml");

document.write("Document location: " + xmlDoc.documentURI);

Output:

Document location: https://www.runoob.com/try/demo_source/books.xml

Try it »


Document Object Reference Document Object