Programmer's Guide > Interfaces > W3C Element interface > getAttributeNS method
  
getAttributeNS method
Retrieves an attribute value by local name and namespace URI. HTML-only DOM implementations do not need to implement this method.
getAttributeNS(namespaceURI , localName )
Parameters
StringnamespaceURI
The namespace URI of the attribute to retrieve.
StringlocalName
The local name of the attribute to retrieve.
Returns
String. The Attr value as a string, or the empty string if that attribute does not have a specified or default value.