W3cubDocs

/Deno

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;
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;
new(): Window;
}

Extends

EventTarget

Properties

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

Methods

new(): Window

© 2018–2021 the Deno authors
https://doc.deno.land/deno/stable/~/Window