Method: CSSStyleDeclaration.getPropertyPriority()

Availability

BlackBerry® Device Software version 4.6 or later

The getPropertyPriority() method returns the priority of a CSS property. This method can be used to determine whether the “!important” qualifier has been specified.

Syntax

CSSStyleDeclaration.getPriorityProperty( propertyName )

Parameters

Parameter

Type

Description

propertyName

String

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

Return values

Returns a string representing the priority of the CSS property, if that property has a priority specified; if no priority has been specified, returns an empty string.

Exceptions

None.


Was this information helpful? Send us your comments.