XML DOM documentURIProperty
Document object
Definition and Usage
The documentURI property sets or returns the location of the document.
Syntax
documentObject.documentURI
Example
The following code snippet usesloadXMLDoc()put "books.xmlLoad into xmlDoc, and display the location of the XML document:
Example
xmlDoc=loadXMLDoc("books.xml");
document.write("Document location: " + xmlDoc.documentURI);
document.write("Document location: " + xmlDoc.documentURI);
Output:
Document location: https://www.example.com/try/demo_source/books.xml
Try it Yourself »
Document objectother extensions