StyleSheetList.item() (Method)

An accessor for objects in the StyleSheetList collection.

Availability:

DOM level - 2
JavaScript - 1.5
JScript - 5.0
Internet Explorer - 5.0
Netscape - 6.0
Property/method value type:StyleSheet object
JavaScript syntax:-myStyleSheetList.item(anIndex)
-myStyleSheetList[anIndex]
Argument list:anIndexThe numeric index of the required style sheet

Calling this method with a numeric value that can range from 0 to 1 less than the length value selects the required StyleSheet object from the collection.

Note that the array like square bracket notation can be used as well.