package vdom

  1. Overview
  2. Docs

Module Js_browser.WindowSource

Sourcetype t
Sourceval t_of_js : Ojs.t -> t
Sourceval t_to_js : t -> Ojs.t
Sourcetype timeout_id
Sourcetype interval_id
Sourceval add_event_listener : t -> Event.kind -> (Event.t -> unit) -> bool -> unit
Sourceval add_cancellable_event_listener : t -> Event.kind -> (Event.t -> unit) -> bool -> unit -> unit
Sourceval document : t -> Document.t
Sourceval set_onload : t -> (unit -> unit) -> unit
Sourceval set_interval : t -> (unit -> unit) -> int -> interval_id
Sourceval set_timeout : t -> (unit -> unit) -> int -> timeout_id
Sourceval clear_timeout : t -> timeout_id -> unit
Sourceval clear_interval : t -> interval_id -> unit
Sourceval request_animation_frame : t -> (float -> unit) -> unit
Sourceval open_ : t -> ?url:string -> ?name:string -> ?features:string -> ?replace:bool -> unit -> t
Sourceval alert : t -> string -> unit
Sourceval session_storage : t -> Storage.t option
Sourceval local_storage : t -> Storage.t option
Sourceval inner_width : t -> float
Sourceval inner_height : t -> float
Sourceval page_x_offset : t -> int
Sourceval page_y_offset : t -> int
Sourceval scroll_by : t -> int -> int -> unit
Sourceval scroll_to : t -> int -> int -> unit
Sourcetype scroll_to_options = {
  1. top : int;
  2. left : int;
  3. behavior : Element.behavior option;
}
Sourceval scroll_to_options : t -> scroll_to_options -> unit
Sourceval history : t -> History.t
Sourceval location : t -> Location.t
Sourceval frame_element : t -> Element.t
Sourceval get_computed_style : t -> Element.t -> Style.t
Sourceval decode_URI_component : t -> string -> string
Sourceval event_source : Event.t -> t
Sourceval post_message : t -> Ojs.t -> string -> unit
OCaml

Innovation. Community. Security.