MSDN Library
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

item method

Gets a property that has been explicitly set in the current declaration block.

Document Object Model (DOM) Level 2 Style Specification, Section 1.2

 

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:
© 2016 Microsoft