getElementByTagName()

This method allows you to get an array with all the elements of the document that have the specified
tag name sent as a parameter.
For example, to obtain all the image elements in the document you could use the following code:

var AllImages = getElementByTagName("img");

Leave a Reply