Method: CSSStyleDeclaration.removeProperty()

Availability

BlackBerry Device Software version 4.6 or later

The removeProperty() method removes a CSS property from the style declaration block.

Syntax

CSSStyleDeclaration.removeProperty( propertyName )

Parameters

Parameter

Type

Description

propertyName

String

The name of the CSS property to remove.

Return values

Returns the value of the removed 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

Exception

Description

NO_MODIFICATION_ALLOWED_ERR

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


Was this information helpful? Send us your comments.