Get the baseURI of the body element:
The result will be:
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.
![]()
The baseURI property is supported in all major browsers, except Internet Explorer.
| Return Value: | A String, representing the URI of the node's page |
|---|---|
| DOM Version | Core Level 3 |
Your message has been sent to W3Schools.