The baseURI property returns the absolute base URI of a node.
The baseURI property is supported in all major browsers, except Internet Explorer.
Return Value: | A String representing the absolute base URI of a node |
---|---|
DOM Version | Core Level 3 Node Object |
The following code fragment loads "books_ns.xml" into xmlDoc using loadXMLDoc() and returns the base URI of the <title> elements: