Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

item

Summary

Gets the nth item in the collection

Method of dom/NodeListdom/NodeList

Syntax

var result = list.item(index);

Parameters

index

Data-type
unsigned long

The index into the collection

Return Value

Returns an object of type DOM NodeDOM Node

Related specifications

DOM Level 1
W3C Recommendation
DOM
W3C Working Draft