HTML DOM baseURI Property
THE WORLD'S LARGEST WEB DEVELOPER SITE

HTML DOM baseURI Property

❮ Document Object

Example

Get the baseURI of the document:

var x = document.baseURI;
Try it Yourself »

Definition and Usage

The baseURI property returns the base URI of the HTML document.

Note: This property is read-only.


Browser Support

Property
baseURI Yes Not supported Yes Yes Yes

Syntax

node.baseURI

Technical Details

Return Value: A String, representing the URI of the node's page
DOM Version Core Level 3 Node Object

❮ Document Object