Interface Window
caches: CacheStorage;
clientInformation: Navigator;
closed: boolean;
crossOriginIsolated: boolean;
crypto: Crypto;
customElements: CustomElementRegistry;
devicePixelRatio: number;
document: Document;
event: Event;
external: External;
frameElement: Element;
frames: Window;
history: History;
indexedDB: IDBFactory;
innerHeight: number;
innerWidth: number;
isSecureContext: boolean;
length: number;
localStorage: Storage;
locationbar: BarProp;
menubar: BarProp;
name: string;
navigator: Navigator;
onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any);
onafterprint: ((this: WindowEventHandlers, ev: Event) => any);
onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any);
onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any);
onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any);
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any);
onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any);
onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any);
onbeforeprint: ((this: WindowEventHandlers, ev: Event) => any);
onbeforetoggle: ((this: GlobalEventHandlers, ev: Event) => any);
onbeforeunload: ((this: WindowEventHandlers, ev: BeforeUnloadEvent) => any);
onbeforexrselect: ((this: GlobalEventHandlers, ev: XRSessionEvent) => any);
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any);
oncancel: ((this: GlobalEventHandlers, ev: Event) => any);
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any);
oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any);
onchange: ((this: GlobalEventHandlers, ev: Event) => any);
onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any);
onclose: ((this: GlobalEventHandlers, ev: Event) => any);
oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any);
oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any);
oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any);
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any);
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any);
oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any);
ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any);
ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any);
ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any);
ondeviceorientationabsolute: ((this: Window, ev: DeviceOrientationEvent) => any);
ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any);
ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any);
ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any);
ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any);
ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any);
ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any);
ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any);
ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any);
onemptied: ((this: GlobalEventHandlers, ev: Event) => any);
onended: ((this: GlobalEventHandlers, ev: Event) => any);
onerror: OnErrorEventHandlerNonNull;
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any);
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any);
ongamepadconnected: ((this: WindowEventHandlers, ev: GamepadEvent) => any);
ongamepaddisconnected: ((this: WindowEventHandlers, ev: GamepadEvent) => any);
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any);
onhashchange: ((this: WindowEventHandlers, ev: HashChangeEvent) => any);
oninput: ((this: GlobalEventHandlers, ev: Event) => any);
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any);
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any);
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any);
onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any);
onlanguagechange: ((this: WindowEventHandlers, ev: Event) => any);
onload: ((this: GlobalEventHandlers, ev: Event) => any);
onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any);
onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any);
onloadstart: ((this: GlobalEventHandlers, ev: Event) => any);
onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any);
onmessage: ((this: WindowEventHandlers, ev: MessageEvent<any>) => any);
onmessageerror: ((this: WindowEventHandlers, ev: MessageEvent<any>) => any);
onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any);
onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any);
onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any);
onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any);
onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any);
onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any);
onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any);
onoffline: ((this: WindowEventHandlers, ev: Event) => any);
ononline: ((this: WindowEventHandlers, ev: Event) => any);
onorientationchange: ((this: Window, ev: Event) => any);
onpagehide: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any);
onpageshow: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any);
onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any);
onpause: ((this: GlobalEventHandlers, ev: Event) => any);
onplay: ((this: GlobalEventHandlers, ev: Event) => any);
onplaying: ((this: GlobalEventHandlers, ev: Event) => any);
onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any);
onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any);
onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any);
onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any);
onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any);
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any);
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any);
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any);
onpopstate: ((this: WindowEventHandlers, ev: PopStateEvent) => any);
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any);
onratechange: ((this: GlobalEventHandlers, ev: Event) => any);
onrejectionhandled: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any);
onreset: ((this: GlobalEventHandlers, ev: Event) => any);
onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any);
onscroll: ((this: GlobalEventHandlers, ev: Event) => any);
onscrollend: ((this: GlobalEventHandlers, ev: Event) => any);
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any);
onseeked: ((this: GlobalEventHandlers, ev: Event) => any);
onseeking: ((this: GlobalEventHandlers, ev: Event) => any);
onselect: ((this: GlobalEventHandlers, ev: Event) => any);
onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any);
onselectstart: ((this: GlobalEventHandlers, ev: Event) => any);
onslotchange: ((this: GlobalEventHandlers, ev: Event) => any);
onstalled: ((this: GlobalEventHandlers, ev: Event) => any);
onstorage: ((this: WindowEventHandlers, ev: StorageEvent) => any);
onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any);
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any);
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any);
ontoggle: ((this: GlobalEventHandlers, ev: Event) => any);
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any);
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any);
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any);
ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any);
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any);
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any);
ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any);
ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any);
onunhandledrejection: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any);
onunload: ((this: WindowEventHandlers, ev: Event) => any);
onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any);
onwaiting: ((this: GlobalEventHandlers, ev: Event) => any);
onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any);
onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any);
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any);
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any);
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any);
opener: any;
orientation: number;
origin: string;
outerHeight: number;
outerWidth: number;
pageXOffset: number;
pageYOffset: number;
parent: Window;
performance: Performance;
personalbar: BarProp;
screen: Screen;
screenLeft: number;
screenTop: number;
screenX: number;
screenY: number;
scrollbars: BarProp;
scrollX: number;
scrollY: number;
self: Window & typeof globalThis;
sessionStorage: Storage;
speechSynthesis: SpeechSynthesis;
status: string;
statusbar: BarProp;
toolbar: BarProp;
top: Window;
visualViewport: VisualViewport;
window: Window & typeof globalThis;
location: Location;
addEventListener<K>(type: K, listener: ((this: Window, ev: WindowEventMap[K]) => any), options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
alert(message?: any): void;
atob(data: string): string;
blur(): void;
btoa(data: string): string;
cancelAnimationFrame(handle: number): void;
cancelIdleCallback(handle: number): void;
captureEvents(): void;
clearInterval(id: number): void;
clearTimeout(id: number): void;
close(): void;
confirm(message?: string): boolean;
createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
dispatchEvent(event: Event): boolean;
fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
focus(): void;
getComputedStyle(elt: Element, pseudoElt?: string): CSSStyleDeclaration;
getSelection(): Selection;
matchMedia(query: string): MediaQueryList;
moveBy(x: number, y: number): void;
moveTo(x: number, y: number): void;
open(url?: string | URL, target?: string, features?: string): Window;
postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void;
postMessage(message: any, options?: WindowPostMessageOptions): void;
print(): void;
prompt(message?: string, _default?: string): string;
queueMicrotask(callback: VoidFunction): void;
releaseEvents(): void;
removeEventListener<K>(type: K, listener: ((this: Window, ev: WindowEventMap[K]) => any), options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
reportError(e: any): void;
requestAnimationFrame(callback: FrameRequestCallback): number;
requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number;
resizeBy(x: number, y: number): void;
resizeTo(width: number, height: number): void;
scroll(options?: ScrollToOptions): void;
scroll(x: number, y: number): void;
scrollBy(options?: ScrollToOptions): void;
scrollBy(x: number, y: number): void;
scrollTo(options?: ScrollToOptions): void;
scrollTo(x: number, y: number): void;
setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
stop(): void;
structuredClone<T>(value: T, options?: StructuredSerializeOptions): T;
[index: number]: Window;
}
Indexable
Index
Properties
Accessors
Methods
Properties
Readonly
caches
Available only in secure contexts.
Readonly
clientInformation
Readonly
closed
Returns true if the window has been closed, false otherwise.
Readonly
crossOriginIsolated
Readonly
crypto
Readonly
customElements
Defines a new custom element, mapping the given name to the given constructor as an autonomous custom element.
Readonly
devicePixelRatio
Readonly
document
Readonly
event
Readonly
external
Readonly
frameElement
Readonly
frames
Readonly
history
Readonly
indexedDB
Readonly
innerHeight
Readonly
innerWidth
Readonly
isSecureContext
Readonly
length
Readonly
localStorage
Readonly
locationbar
Returns true if the location bar is visible; otherwise, returns false.
Readonly
menubar
Returns true if the menu bar is visible; otherwise, returns false.
name
Readonly
navigator
onabort
Fires when the user aborts the download.
Type declaration
- (this, ev): any
Parameters
- this: GlobalEventHandlers
- ev: UIEvent
The event.
Returns any
onafterprint
onanimationcancel
onanimationend
onanimationiteration
onanimationstart
onauxclick
onbeforeinput
onbeforeprint
onbeforetoggle
onbeforeunload
onbeforexrselect
An XRSessionEvent of type beforexrselect is dispatched on the DOM overlay element before generating a WebXR selectstart input event if the -Z axis of the input source's targetRaySpace intersects the DOM overlay element at the time the input device's primary action is triggered.
onblur
Fires when the object loses the input focus.
Type declaration
- (this, ev): any
Parameters
- this: GlobalEventHandlers
- ev: FocusEvent
The focus event.
Returns any
oncancel
oncanplay
Occurs when playback is possible, but would require further buffering.
Type declaration
- (this, ev): any
Parameters
- this: GlobalEventHandlers
- ev: Event
The event.
Returns any
oncanplaythrough
onchange
Fires when the contents of the object or selection have changed.
Type declaration
- (this, ev): any
Parameters
- this: GlobalEventHandlers
- ev: Event
The event.
Returns any
onclick
Fires when the user clicks the left mouse button on the object
Type declaration
- (this, ev): any
Parameters
- this: GlobalEventHandlers
- ev: MouseEvent
The mouse event.
Returns any
onclose
oncontextlost
oncontextmenu
Fires when the user clicks the right mouse button in the client area, opening the context menu.
Type declaration
Parameters
- this: GlobalEventHandlers
- ev: MouseEvent
The mouse event.
Returns any
oncontextrestored
oncopy
oncuechange
oncut
ondblclick
Fires when the user double-clicks the object.
Type declaration
- (this, ev): any
Parameters
- this: GlobalEventHandlers
- ev: MouseEvent
The mouse event.
Returns any
ondevicemotion
Available only in secure contexts.
ondeviceorientation
Available only in secure contexts.
ondeviceorientationabsolute
Available only in secure contexts.
ondrag
Fires on the source object continuously during a drag operation.
Type declaration
- (this, ev): any
Parameters
- this: GlobalEventHandlers
- ev: DragEvent
The event.
Returns any
ondragend
Fires on the source object when the user releases the mouse at the close of a drag operation.
Type declaration
- (this, ev): any
Parameters
- this: GlobalEventHandlers
- ev: DragEvent
The event.
Returns any
ondragenter
Fires on the target element when the user drags the object to a valid drop target.
Type declaration
- (this, ev): any
Parameters
- this: GlobalEventHandlers
- ev: DragEvent
The drag event.
Returns any
ondragleave
Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.
Type declaration
- (this, ev): any
Parameters
- this: GlobalEventHandlers
- ev: DragEvent
The drag event.
Returns any
ondragover
Fires on the target element continuously while the user drags the object over a valid drop target.
Type declaration
- (this, ev): any
Parameters
- this: GlobalEventHandlers
- ev: DragEvent
The event.
Returns any
ondragstart
Fires on the source object when the user starts to drag a text selection or selected object.
Type declaration
- (this, ev): any
Parameters
- this: GlobalEventHandlers
- ev: DragEvent
The event.
Returns any
ondrop
ondurationchange
Occurs when the duration attribute is updated.
Type declaration
- (this, ev): any
Parameters
- this: GlobalEventHandlers
- ev: Event
The event.
Returns any
onemptied
Occurs when the media element is reset to its initial state.
Type declaration
- (this, ev): any
Parameters
- this: GlobalEventHandlers
- ev: Event
The event.
Returns any
onended
Occurs when the end of playback is reached.
Type declaration
- (this, ev): any
Parameters
- this: GlobalEventHandlers
- ev: Event
The event
Returns any
onerror
Fires when an error occurs during object loading.
onfocus
Fires when the object receives focus.
Type declaration
- (this, ev): any
Parameters
- this: GlobalEventHandlers
- ev: FocusEvent
The event.
Returns any
onformdata
ongamepadconnected
ongamepaddisconnected
ongotpointercapture
onhashchange
oninput
oninvalid
onkeydown
Fires when the user presses a key.
Type declaration
- (this, ev): any
Parameters
- this: GlobalEventHandlers
- ev: KeyboardEvent
The keyboard event
Returns any
onkeypress
Fires when the user presses an alphanumeric key.
Type declaration
- (this, ev): any
Parameters
- this: GlobalEventHandlers
- ev: KeyboardEvent
The event.
Returns any
onkeyup
Fires when the user releases a key.
Type declaration
- (this, ev): any
Parameters
- this: GlobalEventHandlers
- ev: KeyboardEvent
The keyboard event
Returns any
onlanguagechange
onload
Fires immediately after the browser loads the object.
Type declaration
- (this, ev): any
Parameters
- this: GlobalEventHandlers
- ev: Event
The event.
Returns any
onloadeddata
Occurs when media data is loaded at the current playback position.
Type declaration
- (this, ev): any
Parameters
- this: GlobalEventHandlers
- ev: Event
The event.
Returns any
onloadedmetadata
Occurs when the duration and dimensions of the media have been determined.
Type declaration
- (this, ev): any
Parameters
- this: GlobalEventHandlers
- ev: Event
The event.
Returns any
onloadstart
Occurs when Internet Explorer begins looking for media data.
Type declaration
- (this, ev): any
Parameters
- this: GlobalEventHandlers
- ev: Event
The event.
Returns any
onlostpointercapture
onmessage
onmessageerror
onmousedown
Fires when the user clicks the object with either mouse button.
Type declaration
- (this, ev): any
Parameters
- this: GlobalEventHandlers
- ev: MouseEvent
The mouse event.
Returns any
onmouseenter
onmouseleave
onmousemove
Fires when the user moves the mouse over the object.
Type declaration
- (this, ev): any
Parameters
- this: GlobalEventHandlers
- ev: MouseEvent
The mouse event.
Returns any
onmouseout
Fires when the user moves the mouse pointer outside the boundaries of the object.
Type declaration
- (this, ev): any
Parameters
- this: GlobalEventHandlers
- ev: MouseEvent
The mouse event.
Returns any
onmouseover
Fires when the user moves the mouse pointer into the object.
Type declaration
- (this, ev): any
Parameters
- this: GlobalEventHandlers
- ev: MouseEvent
The mouse event.
Returns any
onmouseup
Fires when the user releases a mouse button while the mouse is over the object.
Type declaration
- (this, ev): any
Parameters
- this: GlobalEventHandlers
- ev: MouseEvent
The mouse event.
Returns any
onoffline
ononline
onorientationchange
onpagehide
onpageshow
onpaste
onpause
Occurs when playback is paused.
Type declaration
- (this, ev): any
Parameters
- this: GlobalEventHandlers
- ev: Event
The event.
Returns any
onplay
Occurs when the play method is requested.
Type declaration
- (this, ev): any
Parameters
- this: GlobalEventHandlers
- ev: Event
The event.
Returns any
onplaying
Occurs when the audio or video has started playing.
Type declaration
- (this, ev): any
Parameters
- this: GlobalEventHandlers
- ev: Event
The event.
Returns any
onpointercancel
onpointerdown
onpointerenter
onpointerleave
onpointermove
onpointerout
onpointerover
onpointerup
onpopstate
onprogress
Occurs to indicate progress while downloading media data.
Type declaration
- (this, ev): any
Parameters
- this: GlobalEventHandlers
- ev: ProgressEvent<EventTarget>
The event.
Returns any
onratechange
Occurs when the playback rate is increased or decreased.
Type declaration
- (this, ev): any
Parameters
- this: GlobalEventHandlers
- ev: Event
The event.
Returns any
onrejectionhandled
onreset
Fires when the user resets a form.
Type declaration
- (this, ev): any
Parameters
- this: GlobalEventHandlers
- ev: Event
The event.
Returns any
onresize
onscroll
Fires when the user repositions the scroll box in the scroll bar on the object.
Type declaration
- (this, ev): any
Parameters
- this: GlobalEventHandlers
- ev: Event
The event.
Returns any
onscrollend
onsecuritypolicyviolation
onseeked
Occurs when the seek operation ends.
Type declaration
- (this, ev): any
Parameters
- this: GlobalEventHandlers
- ev: Event
The event.
Returns any
onseeking
Occurs when the current playback position is moved.
Type declaration
- (this, ev): any
Parameters
- this: GlobalEventHandlers
- ev: Event
The event.
Returns any
onselect
Fires when the current selection changes.
Type declaration
- (this, ev): any
Parameters
- this: GlobalEventHandlers
- ev: Event
The event.
Returns any
onselectionchange
onselectstart
onslotchange
onstalled
Occurs when the download has stopped.
Type declaration
- (this, ev): any
Parameters
- this: GlobalEventHandlers
- ev: Event
The event.
Returns any
onstorage
onsubmit
onsuspend
Occurs if the load operation has been intentionally halted.
Type declaration
- (this, ev): any
Parameters
- this: GlobalEventHandlers
- ev: Event
The event.
Returns any
ontimeupdate
Occurs to indicate the current playback position.
Type declaration
- (this, ev): any
Parameters
- this: GlobalEventHandlers
- ev: Event
The event.
Returns any
ontoggle
Optional
ontouchcancel
Optional
ontouchend
Optional
ontouchmove
Optional
ontouchstart
ontransitioncancel
ontransitionend
ontransitionrun
ontransitionstart
onunhandledrejection
onunload
onvolumechange
Occurs when the volume is changed, or playback is muted or unmuted.
Type declaration
- (this, ev): any
Parameters
- this: GlobalEventHandlers
- ev: Event
The event.
Returns any
onwaiting
Occurs when playback stops because the next frame of a video resource is not available.
Type declaration
- (this, ev): any
Parameters
- this: GlobalEventHandlers
- ev: Event
The event.
Returns any
onwebkitanimationend
onwebkitanimationiteration
onwebkitanimationstart
onwebkittransitionend
onwheel
opener
Readonly
orientation
Readonly
origin
Readonly
outerHeight
Readonly
outerWidth
Readonly
pageXOffset
Readonly
pageYOffset
Readonly
parent
Refers to either the parent WindowProxy, or itself.
It can rarely be null e.g. for contentWindow of an iframe that is already removed from the parent.
Readonly
performance
Readonly
personalbar
Returns true if the personal bar is visible; otherwise, returns false.
Readonly
screen
Readonly
screenLeft
Readonly
screenTop
Readonly
screenX
Readonly
screenY
Readonly
scrollbars
Returns true if the scrollbars are visible; otherwise, returns false.
Readonly
scrollX
Readonly
scrollY
Readonly
self
Readonly
sessionStorage
Readonly
speechSynthesis
status
Readonly
statusbar
Returns true if the status bar is visible; otherwise, returns false.
Readonly
toolbar
Returns true if the toolbar is visible; otherwise, returns false.
Readonly
top
Readonly
visualViewport
Readonly
window
Methods
addEventListener
- add
Event <K>(type, listener, options?): voidListener Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.
When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
Type Parameters
- K extends keyof WindowEventMap
Parameters
- type: K
- listener: ((this: Window, ev: WindowEventMap[K]) => any)
- (this, ev): any
Parameters
- this: Window
- ev: WindowEventMap[K]
Returns any
Optional
options: boolean | AddEventListenerOptions
Returns void
- add
Event (type, listener, options?): voidListener Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.
When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
Parameters
- type: string
- listener: EventListenerOrEventListenerObject
Optional
options: boolean | AddEventListenerOptions
Returns void
alert
atob
blur
btoa
cancelAnimationFrame
cancelIdleCallback
captureEvents
clearInterval
clearTimeout
close
confirm
createImageBitmap
- create
Image (image, options?): Promise<ImageBitmap>Bitmap Parameters
- image: ImageBitmapSource
Optional
options: ImageBitmapOptions
Returns Promise<ImageBitmap>
- create
Image (image, sx, sy, sw, sh, options?): Promise<ImageBitmap>Bitmap Parameters
- image: ImageBitmapSource
- sx: number
- sy: number
- sw: number
- sh: number
Optional
options: ImageBitmapOptions
Returns Promise<ImageBitmap>
dispatchEvent
- dispatch
Event (event): boolean Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
Parameters
- event: Event
Returns boolean
fetch
- fetch(input, init?): Promise<Response>
Parameters
- input: RequestInfo | URL
Optional
init: RequestInit
Returns Promise<Response>
focus
getComputedStyle
- get
Computed (elt, pseudoElt?): CSSStyleDeclarationStyle Parameters
- elt: Element
Optional
pseudoElt: string
Returns CSSStyleDeclaration
getSelection
matchMedia
- match
Media (query): MediaQueryList Parameters
- query: string
Returns MediaQueryList
moveBy
moveTo
open
postMessage
- post
Message (message, targetOrigin, transfer?): void Posts a message to the given window. Messages can be structured objects, e.g. nested objects and arrays, can contain JavaScript values (strings, numbers, Date objects, etc), and can contain certain data objects such as File Blob, FileList, and ArrayBuffer objects.
Objects listed in the transfer member of options are transferred, not just cloned, meaning that they are no longer usable on the sending side.
A target origin can be specified using the targetOrigin member of options. If not provided, it defaults to "/". This default restricts the message to same-origin targets only.
If the origin of the target window doesn't match the given target origin, the message is discarded, to avoid information leakage. To send the message to the target regardless of origin, set the target origin to "*".
Throws a "DataCloneError" DOMException if transfer array contains duplicate objects or if message could not be cloned.
Parameters
- message: any
- targetOrigin: string
Optional
transfer: Transferable[]
Returns void
- post
Message (message, options?): void Parameters
- message: any
Optional
options: WindowPostMessageOptions
Returns void
print
prompt
queueMicrotask
- queue
Microtask (callback): void Parameters
- callback: VoidFunction
Returns void
releaseEvents
removeEventListener
- remove
Event <K>(type, listener, options?): voidListener Removes the event listener in target's event listener list with the same type, callback, and options.
Type Parameters
- K extends keyof WindowEventMap
Parameters
- type: K
- listener: ((this: Window, ev: WindowEventMap[K]) => any)
- (this, ev): any
Parameters
- this: Window
- ev: WindowEventMap[K]
Returns any
Optional
options: boolean | EventListenerOptions
Returns void
- remove
Event (type, listener, options?): voidListener Removes the event listener in target's event listener list with the same type, callback, and options.
Parameters
- type: string
- listener: EventListenerOrEventListenerObject
Optional
options: boolean | EventListenerOptions
Returns void
reportError
requestAnimationFrame
- request
Animation (callback): numberFrame Parameters
- callback: FrameRequestCallback
Returns number
requestIdleCallback
- request
Idle (callback, options?): numberCallback Parameters
- callback: IdleRequestCallback
Optional
options: IdleRequestOptions
Returns number
resizeBy
resizeTo
scroll
- scroll(options?): void
Parameters
Optional
options: ScrollToOptions
Returns void
- scroll(x, y): void
Parameters
- x: number
- y: number
Returns void
scrollBy
- scroll
By (options?): void Parameters
Optional
options: ScrollToOptions
Returns void
- scroll
By (x, y): void Parameters
- x: number
- y: number
Returns void
scrollTo
- scroll
To (options?): void Parameters
Optional
options: ScrollToOptions
Returns void
- scroll
To (x, y): void Parameters
- x: number
- y: number
Returns void
setInterval
- set
Interval (handler, timeout?, ...arguments): number Parameters
- handler: TimerHandler
Optional
timeout: numberRest
...arguments: any[]
Returns number
setTimeout
- set
Timeout (handler, timeout?, ...arguments): number Parameters
- handler: TimerHandler
Optional
timeout: numberRest
...arguments: any[]
Returns number
stop
structuredClone
- structured
Clone <T>(value, options?): T Type Parameters
Parameters
- value: T
Optional
options: StructuredSerializeOptions
Returns T
A window containing a DOM document; the document property points to the DOM document loaded in that window.
MDN Reference