Documentation Prolog Predicate Reference dom style/3

style/3

Read or update a CSS property of an HTML element.

Description

style( +htmlObject, +atom, ?term )

style(HTMLObject, Property, Value) can be used both to read the value of an HTML element CSS property and to set it. If Value is not a ground term, it will unify with the value holded by the CSS property Property of the HTML element HTML. If it is a ground term, it will set the value for that said Property.

Implementation