Javascript Reference
Categories: HTMLCollection

javascript HTMLCollection item( )

@March 15, 2008, 1:22 a.m.
item( )Firefox/Netscape/NN 6 IE 5(Mac)/6(Win) Chrome/Safari/DOM 1  

item(index)

  

Returns one object from the collection corresponding to the object matching the index value in source code order. IE implements another variation of this method for some (but not all) of its collections with an optional secondary parameter.

 
Parameters
 
index

A zero-based integer corresponding to the specified item in source code order.

 
Returned Value

Reference to an element object. If there are no matches to the parameter, the returned value is null.


Powered by Linode.