getElementsByTagName (DOMDocument - JavaScript)

Gets a node list of all the elements with a given tag name in the order in which they are encountered in a traversal of the Document tree.

Defined in

DOMDocument

Syntax

getElementsByTagName(String tagname) : DOMNodeList