Easy Tutorial
❮ Prop Style Tabsize Prop Url Value ❯

HTML DOM isDefaultNamespace() Method

Element Object

Example

Check if the defined namespace is the default namespace:

Output result:


Definition and Usage

The isDefaultNamespace() method returns true if the specified namespace is the default, otherwise it returns false.


Browser Support

All major browsers support the isDefaultNamespace method.

Note: Internet Explorer 8 and earlier versions do not support this method.


Syntax

Parameters

Parameter Type Description
namespaceURI String Required. The namespace URI you want to check.

Return Value

Type Description
Boolean Returns true if it is the default namespace, otherwise returns false.

Technical Details

| DOM Version | Core Level 3 Node Object | | --- | --- |


Element Object

❮ Prop Style Tabsize Prop Url Value ❯