Ocsigen

Js_of_ocaml

Home

Doc

Blog

Eliom

Js_of_ocaml

Server

Lwt

Tyxml

Start

  • Home
  • Doc
  • Eliom
  • Js_of_ocaml
  • Server
  • Lwt
  • Tyxml
  • Toolkit
  • Start
  • Ocsipersist
  • ReactiveData
  • i18n
  • Wodoc
  • Other projects
  • Research papers
  • Who does Ocsigen?
  • Contributing
  • Blog
  • Installation
  • Source code

On this page

Getting Started

  • Overview
  • Installation
  • Quick Start

Programming Guide

  • JavaScript interop
  • PPX syntax extension
  • JSON derivation
  • Export OCaml code to JavaScript
  • Error handling
  • API

Lwt Support

  • Lwt support
  • API

Compiler

  • Command line options
  • Compilation modes
  • JavaScript primitives
  • Tailcall optimization
  • Effect handlers
  • Runtime representation
  • Targeting older browsers

Wasm_of_ocaml

  • Overview
  • Writing Wasm primitives

How-to Guides

  • Build a toplevel or use Dynlink
  • Debug a program
  • Performance
  • Contribute

Try it

  • OCaml toplevel
  • Examples and projects

On this page

Getting Started

  • Overview
  • Installation
  • Quick Start

Programming Guide

  • JavaScript interop
  • PPX syntax extension
  • JSON derivation
  • Export OCaml code to JavaScript
  • Error handling
  • API

Lwt Support

  • Lwt support
  • API

Compiler

  • Command line options
  • Compilation modes
  • JavaScript primitives
  • Tailcall optimization
  • Effect handlers
  • Runtime representation
  • Targeting older browsers

Wasm_of_ocaml

  • Overview
  • Writing Wasm primitives

How-to Guides

  • Build a toplevel or use Dynlink
  • Debug a program
  • Performance
  • Contribute

Try it

  • OCaml toplevel
  • Examples and projects

Module Js_of_ocaml.Dom_events

Javascript events

module Typ : sig ... end
type listener
val listen : ?capture:bool -> (Dom_html.eventTarget as 'a) Js.t -> (Dom_html.event as 'b) Js.t Typ.typ -> ('a Js.t -> 'b Js.t -> bool) -> listener
val stop_listen : listener -> unit