Method: CSSStyleDeclaration.getPropertyValue()

Availability

BlackBerry Device Software version 4.6 or later

The getPropertyValue() method returns the value of a CSS property as a string, if the property has been explicitly set.

Syntax

CSSStyleDeclaration.getPropertyValue( propertyName )

Parameters

Parameter

Type

Description

propertyName

String

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

Return values

Returns the value of the given CSS property as a string, if that property has been explicitly set for this declaration block; if no value has been set, returns null.

Exceptions

None.


Was this information helpful? Send us your comments.