JavaScript DOM HTML method: getElementsByTagName()
[this page | pdf | back links]
The getElementsByTagName() method (when
applied to HTML
elements in the JavaScript
DOM) returns a
NodeList containing all the elements with the specified tag name (i.e. element
type).
 
It
has the following syntax with the following parameters. It returns a
NodeList representing a collection of all relevant elements, ordered as they
appear in the source code.
 
element.getElementsByTagName(tagname)
 
 
  | Parameter | Required / Optional | Description | 
 
  | tagame | Required | String specifying the tag
  name of the elements you want to obtain | 
 
NAVIGATION LINKS
Contents | Prev | Next | JavaScript DOM (and BOM)