length property

Retrieves the number of properties that are explicitly set on the parent object.

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

Syntax

JavaScript

p = object.length

Property values

Type: Integer

the number of properties that are explicitly set on the parent object. The range of valid property values is from 0 through length-1, inclusive.

Standards information

See also

CSSMediaList
CSSStyleDeclaration
currentStyle
imports
rules
style

 

 

Show:
© 2014 Microsoft. All rights reserved.