item

The item JS NodeList returns the node with index index from the collection. The nodes are sorted in tree order.

Syntax

node = collection.item(index)
node = collection[index]

Parameters

index

The number of preceding siblings, or 0 if it has none.

Examples

1 · item · single

2 · item · multiple

3 · [ ] · single

4 · [ ] · multiple

length

Web Hypertext Application Technology Working Group (WHATWG)

Home Menu