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

HTML DOM baseURI property

HTML DOM baseURI property

Document Object Reference Document Object

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

Internet ExplorerFirefoxOperaGoogle ChromeSafari

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 Reference Document Object