Glossary Term
DOMTokenList.item()
3 tags
1 category
The item() method of the DOMTokenList interface returns an item in the list, determined by its position in the list, its index.
Note: This method is equivalent as the bracket notation. So list.item(i) is the same as list[i].
Inputs: index A number representing the index of the item you want to return. If it isn’t an integer, only the integer part is considered.
Returns: A string representing the returned item, or null if the number is greater than or equal to the length of the list.
Exceptions: TypeError Thrown if the index cannot be converted to an integer.
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…
