HTMLCollection.item() gets an element by position.
- The position of the Node to be returned. Elements appear in an HTMLCollection in the same order in which they appear in the document source.
Node at the specified index, or null if index is less than zero or greater than or equal to the length property.
var c = document.images; // This is an HTMLCollection var img0 = c.item(0); // You can use the item( ) method this way var img1 = c; // But this notation is easier and more common