Javascript Reference
Categories: anchors

javascript anchors item( )

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

item(index[, subindex]) item(index)

  

Returns a single anchor object or collection of anchor objects corresponding to the element matching the index value (or, optionally in IE, the index and subindex values).

 
Parameters
 
index

When the parameter is a zero-based integer (required in Netscape 6), the returned value is a single element that corresponds to the specified item in source code order (nested within the current element). When the parameter is a string, the returned value is a collection of elements whose id or name properties match that string.

 
Returned Value

One anchor object or collection (array) of anchor objects. If there are no matches to the parameters, the returned value is null.


Powered by Linode.