Skip to main content

Module Web_window

module History​

module History = Web_window_history

module LocalStorage​

module LocalStorage = Web_window_localstorage

type timeoutHandlerID​

type timeoutHandlerID = int

type t​

type t =   < history : History.t Js.Undefined.t     ; location : Web_location.t     ; clearTimeout : ( timeoutHandlerID -> unit ) Js_OO.Meth.arity1     ; requestAnimationFrame : ( ( float -> unit ) -> int ) Js_OO.Meth.arity1     ; cancelAnimationFrame : ( int -> unit ) Js_OO.Meth.arity1     ; setInterval :        ( ( unit -> unit ) -> float -> timeoutHandlerID ) Js_OO.Meth.arity2     ; setTimeout :        ( ( unit -> unit ) -> float -> timeoutHandlerID ) Js_OO.Meth.arity2     ; addEventListener :        ( string ->         Web_node.t Web_event.cb ->         Web_event.options ->         unit )         Js_OO.Meth.arity3     ; removeEventListener :        ( string ->         Web_node.t Web_event.cb ->         Web_event.options ->         unit )         Js_OO.Meth.arity3     ; localStorage : LocalStorage.t Js.Undefined.t >     Js.t

val window​

val window : t

val history​

val history : unit -> History.t Js.Undefined.t

val localStorage​

val localStorage : unit -> LocalStorage.t Js.Undefined.t

val location​

val location : unit -> Web_location.t

val requestAnimationFrame​

val requestAnimationFrame : ( float -> unit ) -> int

val cancelAnimationFrame​

val cancelAnimationFrame : int -> unit

val clearTimeout​

val clearTimeout : timeoutHandlerID -> unit

val setInterval​

val setInterval : ( unit -> unit ) -> float -> timeoutHandlerID

val setTimeout​

val setTimeout : ( unit -> unit ) -> float -> timeoutHandlerID

val addEventListener​

val addEventListener :    string ->   Web_node.t Web_event.cb ->   Web_event.options ->   unit

val removeEventListener​

val removeEventListener :    string ->   Web_node.t Web_event.cb ->   Web_event.options ->   unit

val requestAnimationFrame_polyfill​

val requestAnimationFrame_polyfill : unit -> unit