AvailabilityDOM Level 1 Core SynopsisNode setNamedItem(Node arg) throws DOMException; Arguments
ReturnsThe node that was replaced, or null if no node was replaced. ThrowsThis method may throw a DOMException with one of the following code values:
DescriptionsetNamedItem( ) adds the specified node to a NamedNodeMap and allows it to be looked up using the value of the node's nodeName property. If the NamedNodeMap already contains a node with that name, that node is replaced and becomes the return value of the method. See Also |