A window containing a DOM document; the document property points to the DOM document loaded in that window.

MDN Reference

Hierarchy

  • EventTarget
  • AnimationFrameProvider
  • GlobalEventHandlers
  • WindowEventHandlers
  • WindowLocalStorage
  • WindowOrWorkerGlobalScope
  • WindowSessionStorage
    • Window

Indexable

[index: number]: Window

Properties

Xrm caches clientInformation closed crossOriginIsolated crypto customElements devicePixelRatio document event external frameElement frames history indexedDB innerHeight innerWidth isSecureContext length localStorage locationbar menubar name navigator onabort onafterprint onanimationcancel onanimationend onanimationiteration onanimationstart onauxclick onbeforeinput onbeforeprint onbeforeunload onblur oncancel oncanplay oncanplaythrough onchange onclick onclose oncontextmenu oncopy oncuechange oncut ondblclick ondevicemotion ondeviceorientation ondrag ondragend ondragenter ondragleave ondragover ondragstart ondrop ondurationchange onemptied onended onerror onfocus onformdata ongamepadconnected ongamepaddisconnected ongotpointercapture onhashchange oninput oninvalid onkeydown onkeypress onkeyup onlanguagechange onload onloadeddata onloadedmetadata onloadstart onlostpointercapture onmessage onmessageerror onmousedown onmouseenter onmouseleave onmousemove onmouseout onmouseover onmouseup onoffline ononline onorientationchange onpagehide onpageshow onpaste onpause onplay onplaying onpointercancel onpointerdown onpointerenter onpointerleave onpointermove onpointerout onpointerover onpointerup onpopstate onprogress onratechange onrejectionhandled onreset onresize onscroll onsecuritypolicyviolation onseeked onseeking onselect onselectionchange onselectstart onslotchange onstalled onstorage onsubmit onsuspend ontimeupdate ontoggle ontouchcancel? ontouchend? ontouchmove? ontouchstart? ontransitioncancel ontransitionend ontransitionrun ontransitionstart onunhandledrejection onunload onvolumechange onwaiting onwebkitanimationend onwebkitanimationiteration onwebkitanimationstart onwebkittransitionend onwheel opener orientation origin outerHeight outerWidth pageXOffset pageYOffset parent performance personalbar screen screenLeft screenTop screenX screenY scrollX scrollY scrollbars self sessionStorage speechSynthesis status statusbar toolbar top visualViewport window

Accessors

Methods

Properties

caches: CacheStorage

Available only in secure contexts.

MDN Reference

clientInformation: Navigator

Deprecated

This is a legacy alias of navigator.

MDN Reference

closed: boolean

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

MDN Reference

crossOriginIsolated: boolean
crypto: Crypto
customElements: CustomElementRegistry

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

MDN Reference

devicePixelRatio: number
document: Document
event: Event

Deprecated

MDN Reference

external: External

Deprecated

MDN Reference

frameElement: Element
frames: Window
history: History
indexedDB: IDBFactory
innerHeight: number
innerWidth: number
isSecureContext: boolean
length: number
localStorage: Storage
locationbar: BarProp

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

MDN Reference

menubar: BarProp

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

MDN Reference

name: string
navigator: Navigator
onabort: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Fires when the user aborts the download.

      Parameters

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: WindowEventHandlers
      • ev: Event

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: AnimationEvent

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: AnimationEvent

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: AnimationEvent

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: AnimationEvent

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: MouseEvent

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: InputEvent

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: WindowEventHandlers
      • ev: Event

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: WindowEventHandlers
      • ev: BeforeUnloadEvent

      Returns any

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

Type declaration

    • (this, ev): any
    • Fires when the object loses the input focus.

      Parameters

      • this: GlobalEventHandlers
      • ev: FocusEvent

        The focus event.

        MDN Reference

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: Event

      Returns any

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

Type declaration

    • (this, ev): any
    • Occurs when playback is possible, but would require further buffering.

      Parameters

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: Event

      Returns any

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

Type declaration

    • (this, ev): any
    • Fires when the contents of the object or selection have changed.

      Parameters

      Returns any

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

Type declaration

    • (this, ev): any
    • Fires when the user clicks the left mouse button on the object

      Parameters

      • this: GlobalEventHandlers
      • ev: MouseEvent

        The mouse event.

        MDN Reference

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: Event

      Returns any

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

Type declaration

    • (this, ev): any
    • Fires when the user clicks the right mouse button in the client area, opening the context menu.

      Parameters

      • this: GlobalEventHandlers
      • ev: MouseEvent

        The mouse event.

        MDN Reference

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: ClipboardEvent

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: Event

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: ClipboardEvent

      Returns any

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

Type declaration

    • (this, ev): any
    • Fires when the user double-clicks the object.

      Parameters

      • this: GlobalEventHandlers
      • ev: MouseEvent

        The mouse event.

        MDN Reference

      Returns any

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

Type declaration

    • (this, ev): any
    • Available only in secure contexts.

      MDN Reference

      Parameters

      • this: Window
      • ev: DeviceMotionEvent

      Returns any

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

Type declaration

    • (this, ev): any
    • Available only in secure contexts.

      MDN Reference

      Parameters

      • this: Window
      • ev: DeviceOrientationEvent

      Returns any

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

Type declaration

    • (this, ev): any
    • Fires on the source object continuously during a drag operation.

      Parameters

      • this: GlobalEventHandlers
      • ev: DragEvent

        The event.

        MDN Reference

      Returns any

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

Type declaration

    • (this, ev): any
    • Fires on the source object when the user releases the mouse at the close of a drag operation.

      Parameters

      • this: GlobalEventHandlers
      • ev: DragEvent

        The event.

        MDN Reference

      Returns any

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

Type declaration

    • (this, ev): any
    • Fires on the target element when the user drags the object to a valid drop target.

      Parameters

      • this: GlobalEventHandlers
      • ev: DragEvent

        The drag event.

        MDN Reference

      Returns any

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

Type declaration

    • (this, ev): any
    • Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.

      Parameters

      • this: GlobalEventHandlers
      • ev: DragEvent

        The drag event.

        MDN Reference

      Returns any

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

Type declaration

    • (this, ev): any
    • Fires on the target element continuously while the user drags the object over a valid drop target.

      Parameters

      • this: GlobalEventHandlers
      • ev: DragEvent

        The event.

        MDN Reference

      Returns any

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

Type declaration

    • (this, ev): any
    • Fires on the source object when the user starts to drag a text selection or selected object.

      Parameters

      • this: GlobalEventHandlers
      • ev: DragEvent

        The event.

        MDN Reference

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: DragEvent

      Returns any

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

Type declaration

    • (this, ev): any
    • Occurs when the duration attribute is updated.

      Parameters

      Returns any

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

Type declaration

    • (this, ev): any
    • Occurs when the media element is reset to its initial state.

      Parameters

      Returns any

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

Type declaration

    • (this, ev): any
    • Occurs when the end of playback is reached.

      Parameters

      Returns any

onerror: OnErrorEventHandlerNonNull

Fires when an error occurs during object loading.

Param

The event.

MDN Reference

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

Type declaration

    • (this, ev): any
    • Fires when the object receives focus.

      Parameters

      • this: GlobalEventHandlers
      • ev: FocusEvent

        The event.

        MDN Reference

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: FormDataEvent

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: WindowEventHandlers
      • ev: GamepadEvent

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: WindowEventHandlers
      • ev: GamepadEvent

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: PointerEvent

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: WindowEventHandlers
      • ev: HashChangeEvent

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: Event

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: Event

      Returns any

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

Type declaration

    • (this, ev): any
    • Fires when the user presses a key.

      Parameters

      • this: GlobalEventHandlers
      • ev: KeyboardEvent

        The keyboard event

        MDN Reference

      Returns any

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

Type declaration

    • (this, ev): any
    • Fires when the user presses an alphanumeric key.

      Parameters

      • this: GlobalEventHandlers
      • ev: KeyboardEvent

        The event.

      Returns any

      Deprecated

      MDN Reference

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

Type declaration

    • (this, ev): any
    • Fires when the user releases a key.

      Parameters

      • this: GlobalEventHandlers
      • ev: KeyboardEvent

        The keyboard event

        MDN Reference

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: WindowEventHandlers
      • ev: Event

      Returns any

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

Type declaration

    • (this, ev): any
    • Fires immediately after the browser loads the object.

      Parameters

      Returns any

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

Type declaration

    • (this, ev): any
    • Occurs when media data is loaded at the current playback position.

      Parameters

      Returns any

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

Type declaration

    • (this, ev): any
    • Occurs when the duration and dimensions of the media have been determined.

      Parameters

      Returns any

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

Type declaration

    • (this, ev): any
    • Occurs when Internet Explorer begins looking for media data.

      Parameters

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: PointerEvent

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: WindowEventHandlers
      • ev: MessageEvent<any>

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: WindowEventHandlers
      • ev: MessageEvent<any>

      Returns any

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

Type declaration

    • (this, ev): any
    • Fires when the user clicks the object with either mouse button.

      Parameters

      • this: GlobalEventHandlers
      • ev: MouseEvent

        The mouse event.

        MDN Reference

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: MouseEvent

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: MouseEvent

      Returns any

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

Type declaration

    • (this, ev): any
    • Fires when the user moves the mouse over the object.

      Parameters

      • this: GlobalEventHandlers
      • ev: MouseEvent

        The mouse event.

        MDN Reference

      Returns any

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

Type declaration

    • (this, ev): any
    • Fires when the user moves the mouse pointer outside the boundaries of the object.

      Parameters

      • this: GlobalEventHandlers
      • ev: MouseEvent

        The mouse event.

        MDN Reference

      Returns any

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

Type declaration

    • (this, ev): any
    • Fires when the user moves the mouse pointer into the object.

      Parameters

      • this: GlobalEventHandlers
      • ev: MouseEvent

        The mouse event.

        MDN Reference

      Returns any

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

Type declaration

    • (this, ev): any
    • Fires when the user releases a mouse button while the mouse is over the object.

      Parameters

      • this: GlobalEventHandlers
      • ev: MouseEvent

        The mouse event.

        MDN Reference

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: WindowEventHandlers
      • ev: Event

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: WindowEventHandlers
      • ev: Event

      Returns any

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

Type declaration

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: WindowEventHandlers
      • ev: PageTransitionEvent

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: WindowEventHandlers
      • ev: PageTransitionEvent

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: ClipboardEvent

      Returns any

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

Type declaration

    • (this, ev): any
    • Occurs when playback is paused.

      Parameters

      Returns any

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

Type declaration

    • (this, ev): any
    • Occurs when the play method is requested.

      Parameters

      Returns any

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

Type declaration

    • (this, ev): any
    • Occurs when the audio or video has started playing.

      Parameters

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: PointerEvent

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: PointerEvent

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: PointerEvent

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: PointerEvent

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: PointerEvent

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: PointerEvent

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: PointerEvent

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: PointerEvent

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: WindowEventHandlers
      • ev: PopStateEvent

      Returns any

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

Type declaration

    • (this, ev): any
    • Occurs to indicate progress while downloading media data.

      Parameters

      • this: GlobalEventHandlers
      • ev: ProgressEvent<EventTarget>

        The event.

        MDN Reference

      Returns any

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

Type declaration

    • (this, ev): any
    • Occurs when the playback rate is increased or decreased.

      Parameters

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: WindowEventHandlers
      • ev: PromiseRejectionEvent

      Returns any

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

Type declaration

    • (this, ev): any
    • Fires when the user resets a form.

      Parameters

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: UIEvent

      Returns any

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

Type declaration

    • (this, ev): any
    • Fires when the user repositions the scroll box in the scroll bar on the object.

      Parameters

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: SecurityPolicyViolationEvent

      Returns any

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

Type declaration

    • (this, ev): any
    • Occurs when the seek operation ends.

      Parameters

      Returns any

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

Type declaration

    • (this, ev): any
    • Occurs when the current playback position is moved.

      Parameters

      Returns any

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

Type declaration

    • (this, ev): any
    • Fires when the current selection changes.

      Parameters

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: Event

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: Event

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: Event

      Returns any

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

Type declaration

    • (this, ev): any
    • Occurs when the download has stopped.

      Parameters

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: WindowEventHandlers
      • ev: StorageEvent

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: SubmitEvent

      Returns any

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

Type declaration

    • (this, ev): any
    • Occurs if the load operation has been intentionally halted.

      Parameters

      Returns any

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

Type declaration

    • (this, ev): any
    • Occurs to indicate the current playback position.

      Parameters

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: Event

      Returns any

ontouchcancel?: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: TouchEvent

      Returns any

ontouchend?: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: TouchEvent

      Returns any

ontouchmove?: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: TouchEvent

      Returns any

ontouchstart?: ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: TouchEvent

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: TransitionEvent

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: TransitionEvent

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: TransitionEvent

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: TransitionEvent

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: WindowEventHandlers
      • ev: PromiseRejectionEvent

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: WindowEventHandlers
      • ev: Event

      Returns any

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

Type declaration

    • (this, ev): any
    • Occurs when the volume is changed, or playback is muted or unmuted.

      Parameters

      Returns any

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

Type declaration

    • (this, ev): any
    • Occurs when playback stops because the next frame of a video resource is not available.

      Parameters

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: Event

      Returns any

      Deprecated

      This is a legacy alias of onanimationend.

      MDN Reference

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: Event

      Returns any

      Deprecated

      This is a legacy alias of onanimationiteration.

      MDN Reference

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: Event

      Returns any

      Deprecated

      This is a legacy alias of onanimationstart.

      MDN Reference

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: Event

      Returns any

      Deprecated

      This is a legacy alias of ontransitionend.

      MDN Reference

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

Type declaration

    • (this, ev): any
    • Parameters

      • this: GlobalEventHandlers
      • ev: WheelEvent

      Returns any

opener: any
orientation: number

Deprecated

MDN Reference

origin: string
outerHeight: number
outerWidth: number
pageXOffset: number

Deprecated

This is a legacy alias of scrollX.

MDN Reference

pageYOffset: number

Deprecated

This is a legacy alias of scrollY.

MDN Reference

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

performance: Performance
personalbar: BarProp

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

MDN Reference

screen: Screen
screenLeft: number
screenTop: number
screenX: number
screenY: number
scrollX: number
scrollY: number
scrollbars: BarProp

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

MDN Reference

self: Window & typeof globalThis
sessionStorage: Storage
speechSynthesis: SpeechSynthesis
status: string

Deprecated

MDN Reference

statusbar: BarProp

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

MDN Reference

toolbar: BarProp

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

MDN Reference

top: Window
visualViewport: VisualViewport
window: Window & typeof globalThis

Accessors

  • get location(): Location
  • Returns Location

  • set location(href): void
  • Parameters

    • href: string | Location

    Returns void

Methods

  • Type Parameters

    • K extends keyof WindowEventMap

    Parameters

    • type: K
    • listener: ((this, ev) => any)
        • (this, ev): any
        • Parameters

          • this: Window
          • ev: WindowEventMap[K]

          Returns any

    • Optional options: boolean | AddEventListenerOptions

    Returns void

  • Parameters

    • type: string
    • listener: EventListenerOrEventListenerObject
    • Optional options: boolean | AddEventListenerOptions

    Returns void

  • Parameters

    • Optional message: any

    Returns void

  • Parameters

    • data: string

    Returns string

  • Returns void

  • Parameters

    • data: string

    Returns string

  • Parameters

    • handle: number

    Returns void

  • Parameters

    • handle: number

    Returns void

  • Returns void

    Deprecated

    MDN Reference

  • Parameters

    • id: number

    Returns void

  • Parameters

    • id: number

    Returns void

  • Closes the window.

    MDN Reference

    Returns void

  • Parameters

    • Optional message: string

    Returns boolean

  • Parameters

    • image: ImageBitmapSource
    • Optional options: ImageBitmapOptions

    Returns Promise<ImageBitmap>

  • Parameters

    • image: ImageBitmapSource
    • sx: number
    • sy: number
    • sw: number
    • sh: number
    • Optional options: ImageBitmapOptions

    Returns Promise<ImageBitmap>

  • 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

  • Parameters

    • input: URL | RequestInfo
    • Optional init: RequestInit

    Returns Promise<Response>

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

    MDN Reference

    Returns void

  • Parameters

    • elt: Element
    • Optional pseudoElt: string

    Returns CSSStyleDeclaration

  • Returns Selection

  • Parameters

    • query: string

    Returns MediaQueryList

  • Parameters

    • x: number
    • y: number

    Returns void

  • Parameters

    • x: number
    • y: number

    Returns void

  • Parameters

    • Optional url: string | URL
    • Optional target: string
    • Optional features: string

    Returns Window

  • 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
    • Optional transfer: Transferable[]

    Returns void

  • Parameters

    • message: any
    • Optional options: WindowPostMessageOptions

    Returns void

  • Returns void

  • Parameters

    • Optional message: string
    • Optional _default: string

    Returns string

  • Parameters

    • callback: VoidFunction

    Returns void

  • Returns void

    Deprecated

    MDN Reference

  • Type Parameters

    • K extends keyof WindowEventMap

    Parameters

    • type: K
    • listener: ((this, ev) => any)
        • (this, ev): any
        • Parameters

          • this: Window
          • ev: WindowEventMap[K]

          Returns any

    • Optional options: boolean | EventListenerOptions

    Returns void

  • Parameters

    • type: string
    • listener: EventListenerOrEventListenerObject
    • Optional options: boolean | EventListenerOptions

    Returns void

  • Parameters

    • e: any

    Returns void

  • Parameters

    • callback: FrameRequestCallback

    Returns number

  • Parameters

    • callback: IdleRequestCallback
    • Optional options: IdleRequestOptions

    Returns number

  • Parameters

    • x: number
    • y: number

    Returns void

  • Parameters

    • width: number
    • height: number

    Returns void

  • Parameters

    • Optional options: ScrollToOptions

    Returns void

  • Parameters

    • x: number
    • y: number

    Returns void

  • Parameters

    • Optional options: ScrollToOptions

    Returns void

  • Parameters

    • x: number
    • y: number

    Returns void

  • Parameters

    • Optional options: ScrollToOptions

    Returns void

  • Parameters

    • x: number
    • y: number

    Returns void

  • Parameters

    • handler: TimerHandler
    • Optional timeout: number
    • Rest ...arguments: any[]

    Returns number

  • Parameters

    • handler: TimerHandler
    • Optional timeout: number
    • Rest ...arguments: any[]

    Returns number

  • Cancels the document load.

    MDN Reference

    Returns void

  • Type Parameters

    • T = any

    Parameters

    • value: T
    • Optional options: StructuredSerializeOptions

    Returns T

Generated using TypeDoc