Search w3schools.com:

SHARE THIS PAGE

Node Object Reference Node Object

DOM Node baseURI Property

Example

Get the baseURI of the body element:

document.body.baseURI;

The result will be:

http://www.w3schools.com/jsref/prop_node_baseuri.asp

Try it yourself »

Definition and Usage

The baseURI property returns the URI of the page the specified node belongs to.

A node can be a document, element, attribute, or any other node type.


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The baseURI property is supported in all major browsers, except Internet Explorer.


Syntax

node.baseURI

Technical Details

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


Node Object Reference Node Object


Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]