This page is In Progress

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

item

Property of css/cssom/propertiescss/cssom/properties

Syntax

var result = element.item;
element.item = value;

Notes

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. Always check the IDispatch pointer returned by this call, even if the method returns S_OK. If the value of the pointer is null, the element was not found and the call was not successful. Upon successful return, the pvarResult parameter contains an IDispatch interface pointer or an array of IDispatch interface pointers that can be queried for a specific interface, depending on the collection type. item returns a Variant of type Object that can be queried for IHTMLStyleSheet.

Syntax

Standards information

There are no standards that apply here.

Parameters

pvarIndex [in]
Type: VARIANT’Variant’ of type Integer or String that specifies the object or collection to retrieve. If this parameter is an integer, it is the zero-based index ofthe object. If this parameter is a string, all objects with matching idproperties are retrieved, and a collection is returned if more than one match is made.

See also

Related articles

CSSOM

Related pages

Attributions