Documentation Prolog Predicate Reference dom bind/4

bind/4

Bind a certain event to an HTML element.

Description

bind( +htmlObject, +atom, -DOMEventObject, +callable_term )

bind(HTMLObject, EventType, DOMEventObject, Goal) binds the HTML element HTMLObject to the EventType type event so Goal is executed, with DOMEventObject holding the event information, when that type of event happens on the HTML element.

Implementation