class type window =object
..end
method _set_onload : (unit -> unit) -> unit
method _set_onbeforeunload : (unit -> string) -> unit
method _get_location : location
method alert : string -> unit
method confirm : string -> bool
method setInterval : (unit -> unit) -> float -> interval_id
method clearInterval : interval_id -> unit
method setTimeout : (unit -> unit) -> float -> timeout_id
method clearTimeout : timeout_id -> unit