Method: CSSStyleDeclaration.getPropertyCSSValue()

Availability

BlackBerry® Device Software version 4.6 or later

The getPropertyCSSValue() method returns the value of a CSS property as an object, if the property has been explicitly set.

This method cannot access the shorthand property values. The values for shorthand properties can only be accessed and modified as strings, using CSSStyleDeclaration.getPropertyValue() and CSSStyleDeclaration.setProperty().

Syntax

CSSStyleDeclaration.getPropertyCSSValue( propertyName )

Parameters

Parameter

Type

Description

propertyName

String

The name of the CSS property for which to retrieve the value.

Return values

Returns the CSSValue object for the given property, if that property has been explicitly set for this declaration block; if no value has been set, or if the property is a shorthand property, returns null.

Exceptions

None.


Was this information helpful? Send us your comments.