item method
Gets a property that has been explicitly set in the current declaration block.
![]() ![]() |
Syntax
object.item(index)Parameters
- index [in]
-
Type: Integer
The index of the property name to retrieve.
Return value
Type: String
The name of the property at the specified ordinal position, or null if no property exists at that position.
Standards information
Remarks
The item method can be used to iterate over all properties in this declaration block.
See also
- CSSStyleDeclaration
- currentStyle
- style
- Reference
- getPropertyPriority
- getPropertyValue
- length
- removeProperty
- setProperty
Show:

