Skip to main content

Interface: DEPRECATED_WalletsWindow

Deprecated

Use WalletEventsWindow instead.

Extends

  • Window

Indexable

[index: number]: Window

Properties

navigator: DEPRECATED_WalletsNavigator

MDN Reference

Overrides

Window.navigator


onabort

onabort: (this, ev) => any | null

Fires when the user aborts the download.

Param

The event.

MDN Reference

Inherited from

Window.onabort


onanimationcancel

onanimationcancel: (this, ev) => any | null

MDN Reference

Inherited from

Window.onanimationcancel


onanimationend

onanimationend: (this, ev) => any | null

MDN Reference

Inherited from

Window.onanimationend


onanimationiteration

onanimationiteration: (this, ev) => any | null

MDN Reference

Inherited from

Window.onanimationiteration


onanimationstart

onanimationstart: (this, ev) => any | null

MDN Reference

Inherited from

Window.onanimationstart


onauxclick

onauxclick: (this, ev) => any | null

MDN Reference

Inherited from

Window.onauxclick


onbeforeinput

onbeforeinput: (this, ev) => any | null

MDN Reference

Inherited from

Window.onbeforeinput


onbeforetoggle

onbeforetoggle: (this, ev) => any | null

MDN Reference

Inherited from

Window.onbeforetoggle


onblur

onblur: (this, ev) => any | null

Fires when the object loses the input focus.

Param

The focus event.

MDN Reference

Inherited from

Window.onblur


oncancel

oncancel: (this, ev) => any | null

MDN Reference

Inherited from

Window.oncancel


oncanplay

oncanplay: (this, ev) => any | null

Occurs when playback is possible, but would require further buffering.

Param

The event.

MDN Reference

Inherited from

Window.oncanplay


oncanplaythrough

oncanplaythrough: (this, ev) => any | null

MDN Reference

Inherited from

Window.oncanplaythrough


onchange

onchange: (this, ev) => any | null

Fires when the contents of the object or selection have changed.

Param

The event.

MDN Reference

Inherited from

Window.onchange


onclick

onclick: (this, ev) => any | null

Fires when the user clicks the left mouse button on the object

Param

The mouse event.

MDN Reference

Inherited from

Window.onclick


onclose

onclose: (this, ev) => any | null

MDN Reference

Inherited from

Window.onclose


oncontextlost

oncontextlost: (this, ev) => any | null

MDN Reference

Inherited from

Window.oncontextlost


oncontextmenu

oncontextmenu: (this, ev) => any | null

Fires when the user clicks the right mouse button in the client area, opening the context menu.

Param

The mouse event.

MDN Reference

Inherited from

Window.oncontextmenu


oncontextrestored

oncontextrestored: (this, ev) => any | null

MDN Reference

Inherited from

Window.oncontextrestored


oncopy

oncopy: (this, ev) => any | null

MDN Reference

Inherited from

Window.oncopy


oncuechange

oncuechange: (this, ev) => any | null

MDN Reference

Inherited from

Window.oncuechange


oncut

oncut: (this, ev) => any | null

MDN Reference

Inherited from

Window.oncut


ondblclick

ondblclick: (this, ev) => any | null

Fires when the user double-clicks the object.

Param

The mouse event.

MDN Reference

Inherited from

Window.ondblclick


ondrag

ondrag: (this, ev) => any | null

Fires on the source object continuously during a drag operation.

Param

The event.

MDN Reference

Inherited from

Window.ondrag


ondragend

ondragend: (this, ev) => any | null

Fires on the source object when the user releases the mouse at the close of a drag operation.

Param

The event.

MDN Reference

Inherited from

Window.ondragend


ondragenter

ondragenter: (this, ev) => any | null

Fires on the target element when the user drags the object to a valid drop target.

Param

The drag event.

MDN Reference

Inherited from

Window.ondragenter


ondragleave

ondragleave: (this, ev) => any | null

Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.

Param

The drag event.

MDN Reference

Inherited from

Window.ondragleave


ondragover

ondragover: (this, ev) => any | null

Fires on the target element continuously while the user drags the object over a valid drop target.

Param

The event.

MDN Reference

Inherited from

Window.ondragover


ondragstart

ondragstart: (this, ev) => any | null

Fires on the source object when the user starts to drag a text selection or selected object.

Param

The event.

MDN Reference

Inherited from

Window.ondragstart


ondrop

ondrop: (this, ev) => any | null

MDN Reference

Inherited from

Window.ondrop


ondurationchange

ondurationchange: (this, ev) => any | null

Occurs when the duration attribute is updated.

Param

The event.

MDN Reference

Inherited from

Window.ondurationchange


onemptied

onemptied: (this, ev) => any | null

Occurs when the media element is reset to its initial state.

Param

The event.

MDN Reference

Inherited from

Window.onemptied


onended

onended: (this, ev) => any | null

Occurs when the end of playback is reached.

Param

The event

MDN Reference

Inherited from

Window.onended


onerror

onerror: OnErrorEventHandler

Fires when an error occurs during object loading.

Param

The event.

MDN Reference

Inherited from

Window.onerror


onfocus

onfocus: (this, ev) => any | null

Fires when the object receives focus.

Param

The event.

MDN Reference

Inherited from

Window.onfocus


onformdata

onformdata: (this, ev) => any | null

MDN Reference

Inherited from

Window.onformdata


ongotpointercapture

ongotpointercapture: (this, ev) => any | null

MDN Reference

Inherited from

Window.ongotpointercapture


oninput

oninput: (this, ev) => any | null

MDN Reference

Inherited from

Window.oninput


oninvalid

oninvalid: (this, ev) => any | null

MDN Reference

Inherited from

Window.oninvalid


onkeydown

onkeydown: (this, ev) => any | null

Fires when the user presses a key.

Param

The keyboard event

MDN Reference

Inherited from

Window.onkeydown


onkeypress

onkeypress: (this, ev) => any | null

Fires when the user presses an alphanumeric key.

Param

The event.

Deprecated

MDN Reference

Inherited from

Window.onkeypress


onkeyup

onkeyup: (this, ev) => any | null

Fires when the user releases a key.

Param

The keyboard event

MDN Reference

Inherited from

Window.onkeyup


onload

onload: (this, ev) => any | null

Fires immediately after the browser loads the object.

Param

The event.

MDN Reference

Inherited from

Window.onload


onloadeddata

onloadeddata: (this, ev) => any | null

Occurs when media data is loaded at the current playback position.

Param

The event.

MDN Reference

Inherited from

Window.onloadeddata


onloadedmetadata

onloadedmetadata: (this, ev) => any | null

Occurs when the duration and dimensions of the media have been determined.

Param

The event.

MDN Reference

Inherited from

Window.onloadedmetadata


onloadstart

onloadstart: (this, ev) => any | null

Occurs when Internet Explorer begins looking for media data.

Param

The event.

MDN Reference

Inherited from

Window.onloadstart


onlostpointercapture

onlostpointercapture: (this, ev) => any | null

MDN Reference

Inherited from

Window.onlostpointercapture


onmousedown

onmousedown: (this, ev) => any | null

Fires when the user clicks the object with either mouse button.

Param

The mouse event.

MDN Reference

Inherited from

Window.onmousedown


onmouseenter

onmouseenter: (this, ev) => any | null

MDN Reference

Inherited from

Window.onmouseenter


onmouseleave

onmouseleave: (this, ev) => any | null

MDN Reference

Inherited from

Window.onmouseleave


onmousemove

onmousemove: (this, ev) => any | null

Fires when the user moves the mouse over the object.

Param

The mouse event.

MDN Reference

Inherited from

Window.onmousemove


onmouseout

onmouseout: (this, ev) => any | null

Fires when the user moves the mouse pointer outside the boundaries of the object.

Param

The mouse event.

MDN Reference

Inherited from

Window.onmouseout


onmouseover

onmouseover: (this, ev) => any | null

Fires when the user moves the mouse pointer into the object.

Param

The mouse event.

MDN Reference

Inherited from

Window.onmouseover


onmouseup

onmouseup: (this, ev) => any | null

Fires when the user releases a mouse button while the mouse is over the object.

Param

The mouse event.

MDN Reference

Inherited from

Window.onmouseup


onpaste

onpaste: (this, ev) => any | null

MDN Reference

Inherited from

Window.onpaste


onpause

onpause: (this, ev) => any | null

Occurs when playback is paused.

Param

The event.

MDN Reference

Inherited from

Window.onpause


onplay

onplay: (this, ev) => any | null

Occurs when the play method is requested.

Param

The event.

MDN Reference

Inherited from

Window.onplay


onplaying

onplaying: (this, ev) => any | null

Occurs when the audio or video has started playing.

Param

The event.

MDN Reference

Inherited from

Window.onplaying


onpointercancel

onpointercancel: (this, ev) => any | null

MDN Reference

Inherited from

Window.onpointercancel


onpointerdown

onpointerdown: (this, ev) => any | null

MDN Reference

Inherited from

Window.onpointerdown


onpointerenter

onpointerenter: (this, ev) => any | null

MDN Reference

Inherited from

Window.onpointerenter


onpointerleave

onpointerleave: (this, ev) => any | null

MDN Reference

Inherited from

Window.onpointerleave


onpointermove

onpointermove: (this, ev) => any | null

MDN Reference

Inherited from

Window.onpointermove


onpointerout

onpointerout: (this, ev) => any | null

MDN Reference

Inherited from

Window.onpointerout


onpointerover

onpointerover: (this, ev) => any | null

MDN Reference

Inherited from

Window.onpointerover


onpointerup

onpointerup: (this, ev) => any | null

MDN Reference

Inherited from

Window.onpointerup


onprogress

onprogress: (this, ev) => any | null

Occurs to indicate progress while downloading media data.

Param

The event.

MDN Reference

Inherited from

Window.onprogress


onratechange

onratechange: (this, ev) => any | null

Occurs when the playback rate is increased or decreased.

Param

The event.

MDN Reference

Inherited from

Window.onratechange


onreset

onreset: (this, ev) => any | null

Fires when the user resets a form.

Param

The event.

MDN Reference

Inherited from

Window.onreset


onresize

onresize: (this, ev) => any | null

MDN Reference

Inherited from

Window.onresize


onscroll

onscroll: (this, ev) => any | null

Fires when the user repositions the scroll box in the scroll bar on the object.

Param

The event.

MDN Reference

Inherited from

Window.onscroll


onscrollend

onscrollend: (this, ev) => any | null

MDN Reference

Inherited from

Window.onscrollend


onsecuritypolicyviolation

onsecuritypolicyviolation: (this, ev) => any | null

MDN Reference

Inherited from

Window.onsecuritypolicyviolation


onseeked

onseeked: (this, ev) => any | null

Occurs when the seek operation ends.

Param

The event.

MDN Reference

Inherited from

Window.onseeked


onseeking

onseeking: (this, ev) => any | null

Occurs when the current playback position is moved.

Param

The event.

MDN Reference

Inherited from

Window.onseeking


onselect

onselect: (this, ev) => any | null

Fires when the current selection changes.

Param

The event.

MDN Reference

Inherited from

Window.onselect


onselectionchange

onselectionchange: (this, ev) => any | null

MDN Reference

Inherited from

Window.onselectionchange


onselectstart

onselectstart: (this, ev) => any | null

MDN Reference

Inherited from

Window.onselectstart


onslotchange

onslotchange: (this, ev) => any | null

MDN Reference

Inherited from

Window.onslotchange


onstalled

onstalled: (this, ev) => any | null

Occurs when the download has stopped.

Param

The event.

MDN Reference

Inherited from

Window.onstalled


onsubmit

onsubmit: (this, ev) => any | null

MDN Reference

Inherited from

Window.onsubmit


onsuspend

onsuspend: (this, ev) => any | null

Occurs if the load operation has been intentionally halted.

Param

The event.

MDN Reference

Inherited from

Window.onsuspend


ontimeupdate

ontimeupdate: (this, ev) => any | null

Occurs to indicate the current playback position.

Param

The event.

MDN Reference

Inherited from

Window.ontimeupdate


ontoggle

ontoggle: (this, ev) => any | null

MDN Reference

Inherited from

Window.ontoggle


ontouchcancel?

optional ontouchcancel: (this, ev) => any | null

MDN Reference

Inherited from

Window.ontouchcancel


ontouchend?

optional ontouchend: (this, ev) => any | null

MDN Reference

Inherited from

Window.ontouchend


ontouchmove?

optional ontouchmove: (this, ev) => any | null

MDN Reference

Inherited from

Window.ontouchmove


ontouchstart?

optional ontouchstart: (this, ev) => any | null

MDN Reference

Inherited from

Window.ontouchstart


ontransitioncancel

ontransitioncancel: (this, ev) => any | null

MDN Reference

Inherited from

Window.ontransitioncancel


ontransitionend

ontransitionend: (this, ev) => any | null

MDN Reference

Inherited from

Window.ontransitionend


ontransitionrun

ontransitionrun: (this, ev) => any | null

MDN Reference

Inherited from

Window.ontransitionrun


ontransitionstart

ontransitionstart: (this, ev) => any | null

MDN Reference

Inherited from

Window.ontransitionstart


onvolumechange

onvolumechange: (this, ev) => any | null

Occurs when the volume is changed, or playback is muted or unmuted.

Param

The event.

MDN Reference

Inherited from

Window.onvolumechange


onwaiting

onwaiting: (this, ev) => any | null

Occurs when playback stops because the next frame of a video resource is not available.

Param

The event.

MDN Reference

Inherited from

Window.onwaiting


onwebkitanimationend

onwebkitanimationend: (this, ev) => any | null

Deprecated

This is a legacy alias of onanimationend.

MDN Reference

Inherited from

Window.onwebkitanimationend


onwebkitanimationiteration

onwebkitanimationiteration: (this, ev) => any | null

Deprecated

This is a legacy alias of onanimationiteration.

MDN Reference

Inherited from

Window.onwebkitanimationiteration


onwebkitanimationstart

onwebkitanimationstart: (this, ev) => any | null

Deprecated

This is a legacy alias of onanimationstart.

MDN Reference

Inherited from

Window.onwebkitanimationstart


onwebkittransitionend

onwebkittransitionend: (this, ev) => any | null

Deprecated

This is a legacy alias of ontransitionend.

MDN Reference

Inherited from

Window.onwebkittransitionend


onwheel

onwheel: (this, ev) => any | null

MDN Reference

Inherited from

Window.onwheel


clientInformation

readonly clientInformation: Navigator

Deprecated

This is a legacy alias of navigator.

MDN Reference

Inherited from

Window.clientInformation


closed

readonly closed: boolean

Returns true if the window has been closed, false otherwise.

MDN Reference

Inherited from

Window.closed


customElements

readonly customElements: CustomElementRegistry

Defines a new custom element, mapping the given name to the given constructor as an autonomous custom element.

MDN Reference

Inherited from

Window.customElements


devicePixelRatio

readonly devicePixelRatio: number

MDN Reference

Inherited from

Window.devicePixelRatio


document

readonly document: Document

MDN Reference

Inherited from

Window.document


event

readonly event: Event | undefined

Deprecated

MDN Reference

Inherited from

Window.event


external

readonly external: External

Deprecated

MDN Reference

Inherited from

Window.external


frameElement

readonly frameElement: Element | null

MDN Reference

Inherited from

Window.frameElement


frames

readonly frames: Window

MDN Reference

Inherited from

Window.frames


history

readonly history: History

MDN Reference

Inherited from

Window.history


innerHeight

readonly innerHeight: number

MDN Reference

Inherited from

Window.innerHeight


innerWidth

readonly innerWidth: number

MDN Reference

Inherited from

Window.innerWidth


length

readonly length: number

MDN Reference

Inherited from

Window.length


locationbar

readonly locationbar: BarProp

Returns true if the location bar is visible; otherwise, returns false.

MDN Reference

Inherited from

Window.locationbar


readonly menubar: BarProp

Returns true if the menu bar is visible; otherwise, returns false.

MDN Reference

Inherited from

Window.menubar


name

name: string

MDN Reference

Inherited from

Window.name


ondevicemotion

ondevicemotion: (this, ev) => any | null

Available only in secure contexts.

MDN Reference

Inherited from

Window.ondevicemotion


ondeviceorientation

ondeviceorientation: (this, ev) => any | null

Available only in secure contexts.

MDN Reference

Inherited from

Window.ondeviceorientation


ondeviceorientationabsolute

ondeviceorientationabsolute: (this, ev) => any | null

Available only in secure contexts.

MDN Reference

Inherited from

Window.ondeviceorientationabsolute


onorientationchange

onorientationchange: (this, ev) => any | null

Deprecated

MDN Reference

Inherited from

Window.onorientationchange


opener

opener: any

MDN Reference

Inherited from

Window.opener


orientation

readonly orientation: number

Deprecated

MDN Reference

Inherited from

Window.orientation


outerHeight

readonly outerHeight: number

MDN Reference

Inherited from

Window.outerHeight


outerWidth

readonly outerWidth: number

MDN Reference

Inherited from

Window.outerWidth


pageXOffset

readonly pageXOffset: number

Deprecated

This is a legacy alias of scrollX.

MDN Reference

Inherited from

Window.pageXOffset


pageYOffset

readonly pageYOffset: number

Deprecated

This is a legacy alias of scrollY.

MDN Reference

Inherited from

Window.pageYOffset


parent

readonly parent: Window

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.

MDN Reference

Inherited from

Window.parent


personalbar

readonly personalbar: BarProp

Returns true if the personal bar is visible; otherwise, returns false.

MDN Reference

Inherited from

Window.personalbar


screen

readonly screen: Screen

MDN Reference

Inherited from

Window.screen


screenLeft

readonly screenLeft: number

MDN Reference

Inherited from

Window.screenLeft


screenTop

readonly screenTop: number

MDN Reference

Inherited from

Window.screenTop


screenX

readonly screenX: number

MDN Reference

Inherited from

Window.screenX


screenY

readonly screenY: number

MDN Reference

Inherited from

Window.screenY


scrollX

readonly scrollX: number

MDN Reference

Inherited from

Window.scrollX


scrollY

readonly scrollY: number

MDN Reference

Inherited from

Window.scrollY


scrollbars

readonly scrollbars: BarProp

Returns true if the scrollbars are visible; otherwise, returns false.

MDN Reference

Inherited from

Window.scrollbars


self

readonly self: Window & typeof globalThis

MDN Reference

Inherited from

Window.self


speechSynthesis

readonly speechSynthesis: SpeechSynthesis

MDN Reference

Inherited from

Window.speechSynthesis


status

status: string

Deprecated

MDN Reference

Inherited from

Window.status


statusbar

readonly statusbar: BarProp

Returns true if the status bar is visible; otherwise, returns false.

MDN Reference

Inherited from

Window.statusbar


toolbar

readonly toolbar: BarProp

Returns true if the toolbar is visible; otherwise, returns false.

MDN Reference

Inherited from

Window.toolbar


top

readonly top: Window | null

MDN Reference

Inherited from

Window.top


visualViewport

readonly visualViewport: VisualViewport | null

MDN Reference

Inherited from

Window.visualViewport


window

readonly window: Window & typeof globalThis

MDN Reference

Inherited from

Window.window


onafterprint

onafterprint: (this, ev) => any | null

MDN Reference

Inherited from

Window.onafterprint


onbeforeprint

onbeforeprint: (this, ev) => any | null

MDN Reference

Inherited from

Window.onbeforeprint


onbeforeunload

onbeforeunload: (this, ev) => any | null

MDN Reference

Inherited from

Window.onbeforeunload


ongamepadconnected

ongamepadconnected: (this, ev) => any | null

MDN Reference

Inherited from

Window.ongamepadconnected


ongamepaddisconnected

ongamepaddisconnected: (this, ev) => any | null

MDN Reference

Inherited from

Window.ongamepaddisconnected


onhashchange

onhashchange: (this, ev) => any | null

MDN Reference

Inherited from

Window.onhashchange


onlanguagechange

onlanguagechange: (this, ev) => any | null

MDN Reference

Inherited from

Window.onlanguagechange


onmessage

onmessage: (this, ev) => any | null

MDN Reference

Inherited from

Window.onmessage


onmessageerror

onmessageerror: (this, ev) => any | null

MDN Reference

Inherited from

Window.onmessageerror


onoffline

onoffline: (this, ev) => any | null

MDN Reference

Inherited from

Window.onoffline


ononline

ononline: (this, ev) => any | null

MDN Reference

Inherited from

Window.ononline


onpagehide

onpagehide: (this, ev) => any | null

MDN Reference

Inherited from

Window.onpagehide


onpageshow

onpageshow: (this, ev) => any | null

MDN Reference

Inherited from

Window.onpageshow


onpopstate

onpopstate: (this, ev) => any | null

MDN Reference

Inherited from

Window.onpopstate


onrejectionhandled

onrejectionhandled: (this, ev) => any | null

MDN Reference

Inherited from

Window.onrejectionhandled


onstorage

onstorage: (this, ev) => any | null

MDN Reference

Inherited from

Window.onstorage


onunhandledrejection

onunhandledrejection: (this, ev) => any | null

MDN Reference

Inherited from

Window.onunhandledrejection


onunload

onunload: (this, ev) => any | null

Deprecated

MDN Reference

Inherited from

Window.onunload


localStorage

readonly localStorage: Storage

MDN Reference

Inherited from

Window.localStorage


caches

readonly caches: CacheStorage

Available only in secure contexts.

MDN Reference

Inherited from

Window.caches


crossOriginIsolated

readonly crossOriginIsolated: boolean

MDN Reference

Inherited from

Window.crossOriginIsolated


crypto

readonly crypto: Crypto

MDN Reference

Inherited from

Window.crypto


indexedDB

readonly indexedDB: IDBFactory

MDN Reference

Inherited from

Window.indexedDB


isSecureContext

readonly isSecureContext: boolean

MDN Reference

Inherited from

Window.isSecureContext


origin

readonly origin: string

MDN Reference

Inherited from

Window.origin


performance

readonly performance: Performance

MDN Reference

Inherited from

Window.performance


sessionStorage

readonly sessionStorage: Storage

MDN Reference

Inherited from

Window.sessionStorage

Accessors

location

Get Signature

get location(): Location

MDN Reference

Returns

Location

Set Signature

set location(href): void

Parameters
href

string | Location

Returns

void

Inherited from

Window.location

Methods

cancelAnimationFrame()

cancelAnimationFrame(handle): void

MDN Reference

Parameters

handle

number

Returns

void

Inherited from

Window.cancelAnimationFrame


requestAnimationFrame()

requestAnimationFrame(callback): number

MDN Reference

Parameters

callback

FrameRequestCallback

Returns

number

Inherited from

Window.requestAnimationFrame


dispatchEvent()

dispatchEvent(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.

MDN Reference

Parameters

event

Event

Returns

boolean

Inherited from

Window.dispatchEvent


alert()

alert(message?): void

MDN Reference

Parameters

message?

any

Returns

void

Inherited from

Window.alert


blur()

blur(): void

Returns

void

Deprecated

MDN Reference

Inherited from

Window.blur


cancelIdleCallback()

cancelIdleCallback(handle): void

MDN Reference

Parameters

handle

number

Returns

void

Inherited from

Window.cancelIdleCallback


captureEvents()

captureEvents(): void

Returns

void

Deprecated

MDN Reference

Inherited from

Window.captureEvents


close()

close(): void

Closes the window.

MDN Reference

Returns

void

Inherited from

Window.close


confirm()

confirm(message?): boolean

MDN Reference

Parameters

message?

string

Returns

boolean

Inherited from

Window.confirm


focus()

focus(): void

Moves the focus to the window's browsing context, if any.

MDN Reference

Returns

void

Inherited from

Window.focus


getComputedStyle()

getComputedStyle(elt, pseudoElt?): CSSStyleDeclaration

MDN Reference

Parameters

elt

Element

pseudoElt?

string | null

Returns

CSSStyleDeclaration

Inherited from

Window.getComputedStyle


getSelection()

getSelection(): Selection | null

MDN Reference

Returns

Selection | null

Inherited from

Window.getSelection


matchMedia()

matchMedia(query): MediaQueryList

MDN Reference

Parameters

query

string

Returns

MediaQueryList

Inherited from

Window.matchMedia


moveBy()

moveBy(x, y): void

MDN Reference

Parameters

x

number

y

number

Returns

void

Inherited from

Window.moveBy


moveTo()

moveTo(x, y): void

MDN Reference

Parameters

x

number

y

number

Returns

void

Inherited from

Window.moveTo


open()

open(url?, target?, features?): Window | null

MDN Reference

Parameters

url?

string | URL

target?

string

features?

string

Returns

Window | null

Inherited from

Window.open


postMessage()

Call Signature

postMessage(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.

MDN Reference

Parameters
message

any

targetOrigin

string

transfer?

Transferable[]

Returns

void

Inherited from

Window.postMessage

Call Signature

postMessage(message, options?): void

Parameters
message

any

options?

WindowPostMessageOptions

Returns

void

Inherited from

Window.postMessage


print()

print(): void

MDN Reference

Returns

void

Inherited from

Window.print


prompt()

prompt(message?, _default?): string | null

MDN Reference

Parameters

message?

string

_default?

string

Returns

string | null

Inherited from

Window.prompt


releaseEvents()

releaseEvents(): void

Returns

void

Deprecated

MDN Reference

Inherited from

Window.releaseEvents


requestIdleCallback()

requestIdleCallback(callback, options?): number

MDN Reference

Parameters

callback

IdleRequestCallback

options?

IdleRequestOptions

Returns

number

Inherited from

Window.requestIdleCallback


resizeBy()

resizeBy(x, y): void

MDN Reference

Parameters

x

number

y

number

Returns

void

Inherited from

Window.resizeBy


resizeTo()

resizeTo(width, height): void

MDN Reference

Parameters

width

number

height

number

Returns

void

Inherited from

Window.resizeTo


scroll()

Call Signature

scroll(options?): void

MDN Reference

Parameters
options?

ScrollToOptions

Returns

void

Inherited from

Window.scroll

Call Signature

scroll(x, y): void

Parameters
x

number

y

number

Returns

void

Inherited from

Window.scroll


scrollBy()

Call Signature

scrollBy(options?): void

MDN Reference

Parameters
options?

ScrollToOptions

Returns

void

Inherited from

Window.scrollBy

Call Signature

scrollBy(x, y): void

Parameters
x

number

y

number

Returns

void

Inherited from

Window.scrollBy


scrollTo()

Call Signature

scrollTo(options?): void

MDN Reference

Parameters
options?

ScrollToOptions

Returns

void

Inherited from

Window.scrollTo

Call Signature

scrollTo(x, y): void

Parameters
x

number

y

number

Returns

void

Inherited from

Window.scrollTo


stop()

stop(): void

Cancels the document load.

MDN Reference

Returns

void

Inherited from

Window.stop


addEventListener()

Call Signature

addEventListener<K>(type, listener, options?): void

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.

MDN Reference

Type Parameters
K

K extends keyof WindowEventMap

Parameters
type

K

listener

(this, ev) => any

options?

boolean | AddEventListenerOptions

Returns

void

Inherited from

Window.addEventListener

Call Signature

addEventListener(type, listener, options?): void

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.

MDN Reference

Parameters
type

string

listener

EventListenerOrEventListenerObject

options?

boolean | AddEventListenerOptions

Returns

void

Inherited from

Window.addEventListener


removeEventListener()

Call Signature

removeEventListener<K>(type, listener, options?): void

Removes the event listener in target's event listener list with the same type, callback, and options.

MDN Reference

Type Parameters
K

K extends keyof WindowEventMap

Parameters
type

K

listener

(this, ev) => any

options?

boolean | EventListenerOptions

Returns

void

Inherited from

Window.removeEventListener

Call Signature

removeEventListener(type, listener, options?): void

Removes the event listener in target's event listener list with the same type, callback, and options.

MDN Reference

Parameters
type

string

listener

EventListenerOrEventListenerObject

options?

boolean | EventListenerOptions

Returns

void

Inherited from

Window.removeEventListener


atob()

atob(data): string

MDN Reference

Parameters

data

string

Returns

string

Inherited from

Window.atob


btoa()

btoa(data): string

MDN Reference

Parameters

data

string

Returns

string

Inherited from

Window.btoa


clearInterval()

clearInterval(id): void

MDN Reference

Parameters

id

number | undefined

Returns

void

Inherited from

Window.clearInterval


clearTimeout()

clearTimeout(id): void

MDN Reference

Parameters

id

number | undefined

Returns

void

Inherited from

Window.clearTimeout


createImageBitmap()

Call Signature

createImageBitmap(image, options?): Promise<ImageBitmap>

MDN Reference

Parameters
image

ImageBitmapSource

options?

ImageBitmapOptions

Returns

Promise<ImageBitmap>

Inherited from

Window.createImageBitmap

Call Signature

createImageBitmap(image, sx, sy, sw, sh, options?): Promise<ImageBitmap>

Parameters
image

ImageBitmapSource

sx

number

sy

number

sw

number

sh

number

options?

ImageBitmapOptions

Returns

Promise<ImageBitmap>

Inherited from

Window.createImageBitmap


fetch()

fetch(input, init?): Promise<Response>

MDN Reference

Parameters

input

URL | RequestInfo

init?

RequestInit

Returns

Promise<Response>

Inherited from

Window.fetch


queueMicrotask()

queueMicrotask(callback): void

MDN Reference

Parameters

callback

VoidFunction

Returns

void

Inherited from

Window.queueMicrotask


reportError()

reportError(e): void

MDN Reference

Parameters

e

any

Returns

void

Inherited from

Window.reportError


setInterval()

setInterval(handler, timeout?, ...arguments): number

MDN Reference

Parameters

handler

TimerHandler

timeout?

number

arguments

...any[]

Returns

number

Inherited from

Window.setInterval


setTimeout()

setTimeout(handler, timeout?, ...arguments): number

MDN Reference

Parameters

handler

TimerHandler

timeout?

number

arguments

...any[]

Returns

number

Inherited from

Window.setTimeout


structuredClone()

structuredClone<T>(value, options?): T

MDN Reference

Type Parameters

T

T = any

Parameters

value

T

options?

StructuredSerializeOptions

Returns

T

Inherited from

Window.structuredClone