package fmlib_js

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Browser events.

type t

Type type of an event.

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.

OCaml

Innovation. Community. Security.