Method list in CSSStyleDeclaration

Description

CSSStyleDeclaration object provides the complete control of CSS via the DOM.

The Members of the CSSStyleDeclaration Object

MemberDescriptionReturns
cssTextGets or sets the text of the style.string
getPropertyCSSValue(name)Gets the specified property.CSSPrimitiveValue
getPropertyPriority(name)Gets the priority of the specified property.string
getPropertyValue(name)Gets the specified value as a string.string
item(pos)Gets the item at the specified position.string
lengthGets the number of items.number
parentRuleGets the style rule if there is one.CSSStyleRule
removeProperty(name)Removes the specified property.string
setProperty(name, value, priority)Sets the value and priority for the specified property.void
styleConvenience property to get or set the specified CSS property.string




















Home »
  Javascript »
    Javascript Reference »




Array
Canvas Context
CSSStyleDeclaration
CSSStyleSheet
Date
Document
Event
Global
History
HTMLElement
Input Element
Location
Math
Number
String
Window