Window

class Window extends EventTarget {
alert: (message?: string) => void;
close: () => void;
readonly closed: boolean;
confirm: (message?: string) => boolean;
Deno: Deno;
localStorage: Storage;
location: Location;
Location: Location;
navigator: Navigator;
Navigator: Navigator;
onerror: ((this: Window, ev: ErrorEvent) => any) | null;
onload: ((this: Window, ev: Event) => any) | null;
onunload: ((this: Window, ev: Event) => any) | null;
prompt: (message?: string, defaultValue?: string) => string | null;
readonly self: Window & globalThis;
sessionStorage: Storage;
readonly window: Window & globalThis;
 
addEventListener<K extends keyof WindowEventMap>(
type: K,
listener: (this: Window, ev: WindowEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void;
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void;
new(): Window;
removeEventListener<K extends keyof WindowEventMap>(
type: K,
listener: (this: Window, ev: WindowEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void;
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void;
}

§Extends

§
EventTarget
[src]

§Properties

§
alert: (message?: string) => void
[src]
§
close: () => void
[src]
§
closed: boolean
[src]
§
confirm: (message?: string) => boolean
[src]
§
Deno: Deno
[src]
§
localStorage: Storage
[src]
§
location: Location
[src]
§
Location: Location
[src]
§
onerror: ((this: Window, ev: ErrorEvent) => any) | null
[src]
§
onload: ((this: Window, ev: Event) => any) | null
[src]
§
onunload: ((this: Window, ev: Event) => any) | null
[src]
§
prompt: (message?: string, defaultValue?: string) => string | null
[src]
§
self: Window & globalThis
[src]
§
sessionStorage: Storage
[src]
§
window: Window & globalThis
[src]

§Methods

§
addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void
[src]
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void
[src]
§
removeEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void
[src]
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void
[src]