item

The item JS DOMTokenList returns the token with index index.

Syntax

tokenlist.item(index)
tokenlist[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

add

contains

length

remove

replace

supports

toggle

value

Web Hypertext Application Technology Working Group (WHATWG)

Home Menu