ZVON > References > DOM2 Reference

setProperty (method )

Owning interface and usage:  
CSSStyleDeclaration.setProperty(propertyName, value, priority)

Member of these other interfaces:  
none

Description:  
Used to set a property value and priority within this declaration block. Note: setProperty() permits to modify a property or add a new one in the declaration block. Any call to this method may modify the order of properties in the item() method.

Parameters:  
DOMString propertyName  -  The name of the CSS property. See the CSS property index.
DOMString value  -  The new value of the property.
DOMString priority  -  The new priority of the property (e.g. "important") or the empty string if none.

Returns:  
nothing

Exceptions:  
DOMException SYNTAX_ERR
Raised if the specified value has a syntax error and is unparsable.
DOMException NO_MODIFICATION_ALLOWED_ERR
Raised if this declaration is readonly or the property is readonly.