Module Dom_html

module Dom_html : sig..end

DOM HTML binding

This is a partial binding to the DOM HTML API.


CSS style declaration

class type cssStyleDeclaration = object..end

Events

type ('a, 'b) event_listener = ('a, 'b) Dom.event_listener

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.

type mouse_button =  | No_button | Left_button | Middle_button | Right_button
class type event = object..end
class type mouseEvent = object..end
class type keyboardEvent = object..end
class type mousewheelEvent = object..end
class type mouseScrollEvent = object..end
class type touchEvent = object..end
class type touchList = object..end
class type touch = object..end
class type dragEvent = object..end
class type dataTransfer = object..end
class type eventTarget = object..end

Common properties of event target objects: onclick, onkeypress, ...

class type popStateEvent = object..end
class type storageEvent = object..end
class type