Programmer's Guide > Interfaces > W3C Element interface > removeAttribute method
  
removeAttribute method
Removes an attribute by name. If the removed attribute is known to have a default value, an attribute immediately appears containing the default value as well as the corresponding namespace URI, local name, and prefix when applicable.
To remove an attribute by local name and namespace URI, use the removeAttributeNS method.
removeAttribute(name )
Parameters
Stringname
The name of the attribute to remove.
Returns
void
Throws
DOMException
NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.