Programmer's Guide > Interfaces > W3C Document interface > getElementsByTagName method
  
getElementsByTagName method
Returns a NodeList of all the Elements with a given tag name in the order in which they are encountered in a preorder traversal of the Document tree.
getElementsByTagName(tagName )
Parameters
StringtagName
The name of the tag to match on. The special value "*" matches all tags.
Returns
NodeList. A new NodeList object containing all the matched Elements.