javascript attributes getNamedItem( )

getNamedItem( ) NN 6 IE 6 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.


290,Nickname,Homepage or email,Comments here,Add comment