Javascript Reference
Categories: attributes

javascript attributes item( )

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

item(index)

  

Returns a single Attr object corresponding to the element matching the index value.

 
Parameters
 
index

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

 
Returned Value

Reference to one Attr object. If there is no match to the index value, the returned value is null. Unlike some other collections in IE, a string index value is not allowed for the attributes object.


Powered by Linode.