Programmer's Guide > Interfaces > W3C Element interface > getAttributeNode method
  
getAttributeNode method
Retrieves an attribute node by name.
To retrieve an attribute node by qualified name and namespace URI, use the getAttributeNodeNS method.
getAttributeNode(name )
Parameters
Stringname
The name (nodeName) of the attribute to retrieve.
Returns
Attr. The Attr node with the specified name (nodeName) or null if there is no such attribute.