removeAttribute
Summary
Removes a specified content attribute from an element.
Method of dom/Elementdom/Element
Syntax
element.removeAttribute(name);
Parameters
name
- Data-type
- String
The name of the attribute.
Return Value
No return value
Usage
Use this method to remove a content attribute from an element.
Notes
- The attribute to remove may not exist in the first place.
Related specifications
- Document Object Model (DOM) Level 3 Core
- Recommendation
- Document Object Model (DOM) Level 2 Core
- Recommendation
- Document Object Model (DOM) Level 1
- Recommendation
- DOM
- Living Standard
See also
Related pages
- getAttributegetAttribute
- setAttributesetAttribute
Attributions
Microsoft Developer Network: [Windows Internet Explorer API reference Article]