Programmer's Guide > Interfaces > W3C Element interface > removeAttributeNode method
  
removeAttributeNode method
Removes the specified attribute node. If the removed Attr has a default value it is immediately replaced. The replacing attribute has the same namespace URI and local name, as well as the original prefix, when applicable.
removeAttributeNode(oldAttr )
Parameters
AttroldAttr
The Attr node to remove from the attribute list.
Returns
Attr. The Attr node that was removed.
Throws
DOMException
NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
NOT_FOUND_ERR: Raised if oldAttr is not an attribute of the element.