:: Documentation >> Tutorial >>

HTML styles (CSS attributes)

Function setStyle(name, value) allows assigning the value of the CSS attribute (style).

The style can be either a static value or a function. The function will be evaluated each time the object is written to the page or when the refresh() method is called.

See also:

getStyle(name)
setStyle(name, value)