item method (currentStyle, style, ...)
Returns the name of the property that is located at the specified position in the current style object.
Note: The item method is supported in Internet Explorer from version 9.The order of properties is browser dependent. This method is useful if you want to iterate over the properties of a style object. The name of a style property can be used for the getPropertyValue, removeProperty and setProperty methods.
You can find the related objects in the Supported by objects section below.
|Required. Zero-based integer that specifies the index of the style property.|
String. The name of the style property.
Example HTML code 1:
This example illustrates the use of the item method:
Did you find this example helpful?
User Contributed Comments