DOM binding
This is a partial binding to the DOM Core API.
insertBefore p n c
inserts node n
as child of node p
,
just before node c
, or as last child if p
is empty.
The expression insertBefore n c p
behave the same as
p##insertBefore(n, c)
but avoid the need of coercing the
different objects to node t
.
The type of event listener functions. The first type parameter
'a
is the type of the target object; the second parameter
'b
is the type of the event object.
Invoke an existing handler. Useful to chain event handlers.
Add an event listener. This function matches the
addEventListener
DOM method, except that it returns
an id for removing the listener.
Call this to prevent the default handler for the event. To stop propagation of the event, call Dom_html.stopPropagation.