interface dom.Window
implements EventTarget, AnimationFrameProvider, GlobalEventHandlers, WindowConsole, WindowEventHandlers, WindowLocalStorage, WindowOrWorkerGlobalScope, WindowSessionStorage
import { type dom } from "https://deno.land/x/evt@v2.4.6/mod.ts";
const { Window } = dom;
A window containing a DOM document; the document property points to the DOM document loaded in that window.
Properties
readonly
clientInformation: Navigatorreadonly
deprecated
event: Event | undefinedreadonly
frames: Windowlocation: Location
ondevicelight: ((this: Window, ev: DeviceLightEvent) => any) | null
ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null
ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null
ondeviceorientationabsolute: ((this: Window, ev: DeviceOrientationEvent) => any) | null
onreadystatechange: ((this: Window, ev: ProgressEvent<Window>) => any) | null
readonly
parent: Windowreadonly
self: Window & globalThisreadonly
top: Windowreadonly
window: Window & globalThisMethods
open(): Window | null
url?: string,
target?: string,
features?: string,
replace?: boolean,
addEventListener<K extends keyof WindowEventMap>(): void
type: K,
listener: (this: Window, ev: WindowEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
addEventListener(): void
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
removeEventListener<K extends keyof WindowEventMap>(): void
type: K,
listener: (this: Window, ev: WindowEventMap[K]) => any,
options?: boolean | EventListenerOptions,