Programmer's Guide > Interfaces > W3C NamedNodeMap interface > removeNamedItem method
  
removeNamedItem method
Removes a node specified by name. When this map contains the attributes attached to an element, 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.
removeNamedItem(name )
Parameters
Stringname
The nodeName of the node to remove.
Returns
Node. The node removed from this map if a node with such a name exists.
Throws
DOMException
NOT_FOUND_ERR: Raised if there is no node named name in this map.
NO_MODIFICATION_ALLOWED_ERR: Raised if this map is readonly.