Get the URI of the namespace for an XHTML document:
The result will be:
The namespaceURI property returns URI of the specified node's namespce.
Note: An element node inherits the namespace of its parent node, therefore, all elements in an XHTML document has the namespaceURI "http://www.w3.org/1999/xhtml".
![]()
The namespaceURI property is supported in all major browsers.
Note: Internet Explorer 8 and earlier does not support this property.
| Return Value: | A String, representing the URI of the node's namespace |
|---|---|
| DOM Version | Core Level 2 |
Node Object
Your message has been sent to W3Schools.