HTML DOM baseURI property
Example
Get the base URI of the document:
document
.
baseURI
;
Output result:
https://www.runoob.com/jsref/prop-doc-baseuri.html
Try it »
Definition and Usage
The baseURI property returns the base URI of the HTML document.
Browser support





All major browsers except IE support the baseURI property.
Syntax
node
.baseURI
Technical Details
| Return Value: | String representing the URI of the node page |
|---|---|
| DOM version | Core Level 3 Node Object |
Document Object