vadnica-logo

JavaScript DOM HTML Collections

The HTMLCollection interface represents an ordered collection of HTML elements. These collections are "live," meaning they update automatically as soon as the structure of the HTML document changes. They are most commonly obtained as results of methods that search for multiple elements at once.

EXAMPLE
RESULT
item() Returns the element at the specified index. See example
length Returns the number of elements in the HTMLCollection. See example
namedItem() Returns the element with the specified ID. See example

Thank you for visiting! Adding privacy policy.

© 2024 All rights reserved.

Vam je koda pomagala? Če želite podpreti moj trud pri pripravi vodičev in vzdrževanju strani, mi lahko namenite donacijo za kavo.