Programmer's Guide > Interfaces > W3C Element interface > getElementsByTagNameNS method
  
getElementsByTagNameNS method
Returns a NodeList of all the descendant Elements with a given local name and namespace URI in the order in which they are encountered in a preorder traversal of this Element tree.
HTML-only DOM implementations do not need to implement this method.
getElementsByTagNameNS(namespaceURI, localName )
Parameters
StringnamespaceURI
The namespace URI of the elements to match on. The special value "*" matches all namespaces.
StringlocalName
The local name of the elements to match on. The special value "*" matches all local names.
Returns
NodeList. A new NodeList object containing all the matched Elements.