getAttributeNS Method
Last Updated: 08-26-2005
Retrieves the value of the attribute with the specified local name and namespace URI.

Syntax
var sValue = Element.getAttributeNS(sNamespaceURI, sLocalName);

Parameters
sNamespaceURI Required. The namespace URI of the attribute to retrieve.
sLocalName Required. The local name of the attribute to retrieve.

Return Value
The value of the specified attribute.

Remarks
If an attribute with the specified local name and namespace URI does not exist, or if it exists but its value is the empty string (""), an empty string is returned. Please note you cannot use getAttributeNS to distinguish between an unspecified attribute and an attribute whose value is the empty string. Use getAttributeNodeNS instead, since that returns either an Attribute node or null if the attribute was not specified.
Applies To
Element
[24]7 Inc.| Terms of Service| Privacy Policy| General Disclaimers