HTML DOM removeNamedItem() Method

Remove the type attribute from an input button

Definition and Usage

The removeNamedItem() method removes a node (by name) in a NamedNodeMap.

Syntax

namednodemap.removeNamedItem(nodename)

Parameters

Parameter Description
nodename Required.
The name of the attribute node to remove

Return Value

Type Description
A nodeThe removed attribute node.

Browser Support

attributes.removeNamedItem() is a DOM Level 1 (1998) feature.

It is fully supported in all browsers:

Chrome IE Edge Firefox Safari Opera
Yes 9-11 Yes Yes Yes Yes