Javascript Reference
Categories: Element

javascript Element getElementsByTagNameNS( )

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

getElementsByTagNameNS("namespaceURI", "localName")

  

Returns an array of all descendant elements of the current element which have a local name that matches the second parameter of the method, and a namespace URI (assigned elsewhere in the document as a namespace declaration) that matches the first method parameter. Elements in the array include children, grandchildren, and so on, and are in the source code order. The current element is not included in the array. If there are no matches, the array has a length of zero. Applies primarily to XML documents.

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

Array of zero or more element references.


Powered by Linode.