Documentation Prolog Predicate Reference dom html/2


Read or update an HTML element.


html( +htmlObject, ?term )

html(HTMLObject, Content) can be used both to read the inner HTML of an HTML element and to set it. If Content is not a ground term, it will unify with the HTML element stored in HTMLObject. If it is a ground term, it will set the value for that said HTML element.