Javascript Reference
Categories: Element

javascript Element hasAttributeNS( )

@March 15, 2008, 1:22 a.m.
hasAttributeNS( )Firefox/Netscape/NN 6 IE n/a Chrome/Safari/DOM 2  

hasAttributeNS("namespaceURI", "localName")

  

Returns a Boolean value true if the current element has an attribute with a local name that matches the method's second parameter, and a namespace URI (assigned elsewhere in the document as a namespace declaration) that matches the first method parameter.

 
Parameters
 
  • URI string matching a URI assigned to a label earlier in the document.
  • The local name portion of the attribute name.
 
Returned Value

Boolean value: true | false.


Powered by Linode.