Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Browser events.
val value : t -> Base.Value.t
The event viewed as a javascript value.
val stop_propagation : t -> unit
Stop the event from bubbling up the dom tree.
val prevent_default : t -> unit
Don't do the browser's default action associated with the event.
E.g. the default action for a mouse click on an anchor <a href="..">
... </a>
is to load the page given in href
. The call prevent_default
event
inhibits this default behaviour.