removeAttributeNS
Summary
Removes a specified content attribute in a specified namespace from an element.
Method of dom/Elementdom/Element
Syntax
element.removeAttributeNS(namespaceURI, name);
Parameters
namespaceURI
- Data-type
- String
The namespace name of the attribute to remove.
name
- Data-type
- String
The local name of the attribute to remove.
Return Value
No return value
Usage
Use this method to remove a content attribute in a specified namespace from an element.
Notes
- The attribute to remove may not exist in the first place.
- Where namespaces are irrelevant, removeAttribute can be used instead.
Related specifications
- Document Object Model (DOM) Level 3 Core
- Recommendation
- Document Object Model (DOM) Level 2 Core
- Recommendation
- DOM
- Living Standard
Attributions
Microsoft Developer Network: [Windows Internet Explorer API reference Article]