Javascript Reference
Categories: attributes

javascript attributes getNamedItem( )

@July 25, 2008, 2:14 p.m.
getNamedItem( ) Firefox/Netscape/NN 6 IE 6 Chrome/Safari/DOM 1  

getNamedItem("attributeName")

  

Returns a single Attr object corresponding to the attribute whose node name matches the parameter value.

 
Parameters
 
attributeName

String corresponding to the name portion of an attribute's name/value pair.

 
Returned Value

Reference to one  Attr object. If there is no match to the parameter value, the returned value is null.


Powered by Linode.