Method: CSSStyleDeclaration.setProperty()

Availability

BlackBerry Device Software version 4.6 or later

The setProperty() method sets the value of a CSS property for the style declaration block.

Syntax

CSSStyleDeclaration.setProperty( propertyName, value, priority )

Parameters

Parameter

Type

Description

propertyName

String

The name of the CSS property to remove.

value

String

The value of the new property.

priority

String

The priority of the new property, or an empty string, if no priority is to be set.

Return values

None.

Exceptions

Exception

Description

NO_MODIFICATION_ALLOWED_ERR

This error is thrown if either the style declaration or the property is read only.

SYNTAX_ERR

This error is thrown if the given value has a syntax error and cannot be parsed.


Was this information helpful? Send us your comments.