See if the defined namespace is the default namespace:
The result will be:
The isDefaultNamespace() method returns true if the specified namespace is default, otherwise false.
![]()
The isDefaultNamespace() method is supported in all major browsers.
Note: Internet Explorer 8 and earlier does not support this method.
| Parameter | Type | Description |
|---|---|---|
| namespaceURI | String | Required. The URI of the namespace you want to check |
| Type | Description |
|---|---|
| Boolean | true if the namespace is default, otherwise false |
| DOM Version | Core Level 3 |
|---|
Node Object
Your message has been sent to W3Schools.