Remove the type attribute from an input button:
Before removing the attribute:
After removing the attribute:
The removeNamedItem() method removes the node with the specified name in a namedNodeMap.
The removeNamedItem() method is supported in all major browsers.
Note: In Internet Explorer 8 and earlier, when using the removedNamedItem method to remove an attribute, the method returns the attribute as it should, but it does not remove the attribute.
|nodename||String||Required. The name of the node in the namedNodeMap you want to remove|
|Node object||The node that was removed|
|DOM Version||Core Level 1|
Your message has been sent to W3Schools.