HTML DOM Element removeAttributeNode()
HTML DOM Element removeAttributeNode() Method
The removeAttributeNode() method is used for removing an attribute from an element. It is similar to removeAttribute() but the main difference is that removeAttribute() removes an attribute but does not have a return while removeAttributeNode() will return the removed object.
Syntax:-
Its syntax is:- element.removeAttributeNode(name)
Return:-
Its return is:- Attr object containing removed attribute
Further Explanation:-
Parameter | Description |
name | Required. The attribute node to remove. |