item Method
Retrieves an object from a collection.
Syntax
oItem = object.item(vIndex)
Parameters
vIndex Required. Integer or String that specifies the object or collection to retrieve. If this parameter is an integer, it is the zero-based index of the object. If this parameter is a string, all objects with matching id properties are retrieved, and a collection is returned if more than one match is made.
Return Value
Returns an object or a collection of objects if successful, otherwise null.
Possible Exceptions
Member not found (0x80020003) The specified object was not found.
Remarks
Windows Internet Explorer 7 and later. If given a string that is not a numeric index, this method throws an error if no id property with that string value is found.
Standards Information
There is no public standard that applies to this method.
Applies To
imports, styleSheets, StyleSheetList Constructor