Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

HTMLCollection.item()

3 tags 1 category

The HTMLCollection method item() returns the element located at the specified offset into the collection.

Note: Because the contents of an HTMLCollection are live, changes to the underlying DOM can and will cause the position of individual elements in the collection to change, so the index value will not necessarily remain constant for a given element.

Inputs: index The position of the Element to be returned. Elements appear in an HTMLCollection in the same order in which they appear in the document’s source.

Returns: The Element at the specified index, or null if index is less than zero or greater than or equal to the length property.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…