Programmer's Guide > Interfaces > W3C Element interface > getElementsByTagName method
  
getElementsByTagName method
Returns a NodeList of all descendant Elements with a given tag name, in the order in which they are encountered in a preorder traversal of this Element tree.
getElementsByTagName(name )
Parameters
Stringname
The name of the tag to match on. The special value "*" matches all tags.
Returns
NodeList. A list of matching Element nodes.