Javascript Help: document.getElementsByTagNameObject Method

Here is a very simple example of using the getElementsByTagName method of the document object. There are 5 divs with each with an id, from "a" through "e" and the HTML inside each div matches it's corresponding id.



Example:

a
b
c
d
e


Code for the example

Related Keywords: javascript, document, getElementByTagName, get element by tag name, get element by HTML tag