X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY ANGULAR XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

HTML DOM baseURI Property

Document Objects Reference Document Objects

Example

Get the baseURI of the document:

document.baseURI;

The result will be:

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

Try it yourself »


Definition and Usage

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


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


Document Objects Reference Document Objects


Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates FREE Website Templates Free HTML Templates

SHARE THIS PAGE

facebook