length

The length JS HTMLCollection returns the number of elements in the collection.

Syntax

collection.length

Examples

1 · getElementsByTagName · return

2 · getElementsByTagName · for

3 · children · return

4 · children · for

item

namedItem

Web Hypertext Application Technology Working Group (WHATWG)

Home Menu