Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

getElementsByTagName

Description

The getElementsByTagName of Document for JS returns a HTMLCollection of all descendant elements if qualifiedName is "*".

Otherwise, returns a HTMLCollection of all descendant elements whose qualified name is qualifiedName. (Matches case-insensitively against elements in the HTML namespace within an HTML document.)

Syntax

collection = document.getElementsByTagName(qualifiedName)

Parameters

qualifiedName

A qualified name.

Examples

1 · * · document

2 · * · descendant · all

3 · * · descendant · first

4 · * · descendant · last

5 · qualifiedName · document · all

6 · qualifiedName · document · first

7 · qualifiedName · document · last

8 · qualifiedName · descendant · all

9 · qualifiedName · descendant · first

10 · qualifiedName · descendant · last

adoptNode

characterSet

compatMode

contentType

createCDATASection

createComment

createDocumentFragment

createElement

createElementNS

createProcessingInstruction

createTextNode

doctype

Document

documentElement

documentURI

exitPictureInPicture

getElementsByClassName

getElementsByTagNameNS

implementation

importNode

pictureInPictureEnabled

URL

write

writeln

Web Hypertext Application Technology Working Group (WHATWG)

HomeMenu