Javascript Reference
Categories: Element

javascript Element removeAttributeNode( )

@March 15, 2008, 1:22 a.m.
removeAttributeNode( )Firefox/Netscape/NN 6 IE 6 Chrome/Safari/DOM 1  

removeAttributeNode(attrObjectReference)

  

Removes the attribute from the current element indicated by the parameter reference to an existing Attr node object. This provides an alternate way to remove an attribute from an element if the script has only a reference to the Attr node object, rather than its name. Removing an attribute node does not change the source code when viewed through the browser, but does affect how the browser renders the element. The attribute value or node is no longer available after removal.

 
Parameters
 
  • A reference to an Attr node object associated with the current element.
 
Returned Value

Reference to the removed Attr object, which is no longer part of the document tree, but may now be inserted elsewhere in the document tree.


Powered by Linode.