Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Hierarchy

Indexable

[index: number]: Window

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

Index

Properties

Methods

Properties

EventTarget

EventTarget: object

Type declaration

  • constructor: function
    • new __type(): EventTarget
    • Returns EventTarget

  • prototype: EventTarget

applicationCache

applicationCache: ApplicationCache

caches

caches: CacheStorage

clientInformation

clientInformation: Navigator

closed

closed: boolean

console

console: Console

crypto

crypto: Crypto

customElements

customElements: CustomElementRegistry

defaultStatus

defaultStatus: string

devicePixelRatio

devicePixelRatio: number

doNotTrack

doNotTrack: string

document

document: Document

event

event: Event | undefined
deprecated

external

external: External
deprecated

frameElement

frameElement: Element

frames

frames: Window

history

history: History

indexedDB

indexedDB: IDBFactory

innerHeight

innerHeight: number

innerWidth

innerWidth: number

isSecureContext

isSecureContext: boolean

length

length: number

localStorage

localStorage: Storage

location

location: Location

locationbar

locationbar: BarProp

menubar

menubar: BarProp

msContentScript

msContentScript: ExtensionScriptApis

name

name: string

navigator

navigator: Navigator

offscreenBuffering

offscreenBuffering: string | boolean

onabort

onabort: function | null

Fires when the user aborts the download.

param

The event.

onafterprint

onafterprint: function | null

onanimationcancel

onanimationcancel: function | null

onanimationend

onanimationend: function | null

onanimationiteration

onanimationiteration: function | null

onanimationstart

onanimationstart: function | null

onauxclick

onauxclick: function | null

onbeforeprint

onbeforeprint: function | null

onbeforeunload

onbeforeunload: function | null

onblur

onblur: function | null

Fires when the object loses the input focus.

param

The focus event.

oncancel

oncancel: function | null

oncanplay

oncanplay: function | null

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

param

The event.

oncanplaythrough

oncanplaythrough: function | null

onchange

onchange: function | null

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

param

The event.

onclick

onclick: function | null

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

param

The mouse event.

onclose

onclose: function | null

oncompassneedscalibration

oncompassneedscalibration: function | null

oncontextmenu

oncontextmenu: function | null

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

param

The mouse event.

oncuechange

oncuechange: function | null

ondblclick

ondblclick: function | null

Fires when the user double-clicks the object.

param

The mouse event.

ondevicelight

ondevicelight: function | null

ondevicemotion

ondevicemotion: function | null

ondeviceorientation

ondeviceorientation: function | null

ondeviceorientationabsolute

ondeviceorientationabsolute: function | null

ondrag

ondrag: function | null

Fires on the source object continuously during a drag operation.

param

The event.

ondragend

ondragend: function | null

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

param

The event.

ondragenter

ondragenter: function | null

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

param

The drag event.

ondragexit

ondragexit: function | null

ondragleave

ondragleave: function | 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.

ondragover

ondragover: function | null

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

param

The event.

ondragstart

ondragstart: function | null

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

param

The event.

ondrop

ondrop: function | null

ondurationchange

ondurationchange: function | null

Occurs when the duration attribute is updated.

param

The event.

onemptied

onemptied: function | null

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

param

The event.

onended

onended: function | null

Occurs when the end of playback is reached.

param

The event

onerror

Fires when an error occurs during object loading.

param

The event.

onfocus

onfocus: function | null

Fires when the object receives focus.

param

The event.

ongotpointercapture

ongotpointercapture: function | null

onhashchange

onhashchange: function | null

oninput

oninput: function | null

oninvalid

oninvalid: function | null

onkeydown

onkeydown: function | null

Fires when the user presses a key.

param

The keyboard event

onkeypress

onkeypress: function | null

Fires when the user presses an alphanumeric key.

param

The event.

onkeyup

onkeyup: function | null

Fires when the user releases a key.

param

The keyboard event

onlanguagechange

onlanguagechange: function | null

onload

onload: function | null

Fires immediately after the browser loads the object.

param

The event.

onloadeddata

onloadeddata: function | null

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

param

The event.

onloadedmetadata

onloadedmetadata: function | null

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

param

The event.

onloadend

onloadend: function | null

onloadstart

onloadstart: function | null

Occurs when Internet Explorer begins looking for media data.

param

The event.

onlostpointercapture

onlostpointercapture: function | null

onmessage

onmessage: function | null

onmessageerror

onmessageerror: function | null

onmousedown

onmousedown: function | null

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

param

The mouse event.

onmouseenter

onmouseenter: function | null

onmouseleave

onmouseleave: function | null

onmousemove

onmousemove: function | null

Fires when the user moves the mouse over the object.

param

The mouse event.

onmouseout

onmouseout: function | null

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

param

The mouse event.

onmouseover

onmouseover: function | null

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

param

The mouse event.

onmouseup

onmouseup: function | null

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

param

The mouse event.

onmousewheel

onmousewheel: function | null

onmsgesturechange

onmsgesturechange: function | null

onmsgesturedoubletap

onmsgesturedoubletap: function | null

onmsgestureend

onmsgestureend: function | null

onmsgesturehold

onmsgesturehold: function | null

onmsgesturestart

onmsgesturestart: function | null

onmsgesturetap

onmsgesturetap: function | null

onmsinertiastart

onmsinertiastart: function | null

onmspointercancel

onmspointercancel: function | null

onmspointerdown

onmspointerdown: function | null

onmspointerenter

onmspointerenter: function | null

onmspointerleave

onmspointerleave: function | null

onmspointermove

onmspointermove: function | null

onmspointerout

onmspointerout: function | null

onmspointerover

onmspointerover: function | null

onmspointerup

onmspointerup: function | null

onoffline

onoffline: function | null

ononline

ononline: function | null

onorientationchange

onorientationchange: function | null
deprecated

onpagehide

onpagehide: function | null

onpageshow

onpageshow: function | null

onpause

onpause: function | null

Occurs when playback is paused.

param

The event.

onplay

onplay: function | null

Occurs when the play method is requested.

param

The event.

onplaying

onplaying: function | null

Occurs when the audio or video has started playing.

param

The event.

onpointercancel

onpointercancel: function | null

onpointerdown

onpointerdown: function | null

onpointerenter

onpointerenter: function | null

onpointerleave

onpointerleave: function | null

onpointermove

onpointermove: function | null

onpointerout

onpointerout: function | null

onpointerover

onpointerover: function | null

onpointerup

onpointerup: function | null

onpopstate

onpopstate: function | null

onprogress

onprogress: function | null

Occurs to indicate progress while downloading media data.

param

The event.

onratechange

onratechange: function | null

Occurs when the playback rate is increased or decreased.

param

The event.

onreadystatechange

onreadystatechange: function | null

onrejectionhandled

onrejectionhandled: function | null

onreset

onreset: function | null

Fires when the user resets a form.

param

The event.

onresize

onresize: function | null

onscroll

onscroll: function | null

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

param

The event.

onsecuritypolicyviolation

onsecuritypolicyviolation: function | null

onseeked

onseeked: function | null

Occurs when the seek operation ends.

param

The event.

onseeking

onseeking: function | null

Occurs when the current playback position is moved.

param

The event.

onselect

onselect: function | null

Fires when the current selection changes.

param

The event.

onselectionchange

onselectionchange: function | null

onselectstart

onselectstart: function | null

onstalled

onstalled: function | null

Occurs when the download has stopped.

param

The event.

onstorage

onstorage: function | null

onsubmit

onsubmit: function | null

onsuspend

onsuspend: function | null

Occurs if the load operation has been intentionally halted.

param

The event.

ontimeupdate

ontimeupdate: function | null

Occurs to indicate the current playback position.

param

The event.

ontoggle

ontoggle: function | null

ontouchcancel

ontouchcancel: function | null

ontouchend

ontouchend: function | null

ontouchmove

ontouchmove: function | null

ontouchstart

ontouchstart: function | null

ontransitioncancel

ontransitioncancel: function | null

ontransitionend

ontransitionend: function | null

ontransitionrun

ontransitionrun: function | null

ontransitionstart

ontransitionstart: function | null

onunhandledrejection

onunhandledrejection: function | null

onunload

onunload: function | null

onvolumechange

onvolumechange: function | null

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

param

The event.

onvrdisplayactivate

onvrdisplayactivate: function | null

onvrdisplayblur

onvrdisplayblur: function | null

onvrdisplayconnect

onvrdisplayconnect: function | null

onvrdisplaydeactivate

onvrdisplaydeactivate: function | null

onvrdisplaydisconnect

onvrdisplaydisconnect: function | null

onvrdisplayfocus

onvrdisplayfocus: function | null

onvrdisplaypointerrestricted

onvrdisplaypointerrestricted: function | null

onvrdisplaypointerunrestricted

onvrdisplaypointerunrestricted: function | null

onvrdisplaypresentchange

onvrdisplaypresentchange: function | null

onwaiting

onwaiting: function | null

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

param

The event.

onwheel

onwheel: function | null

opener

opener: any

orientation

orientation: string | number
deprecated

origin

origin: string

outerHeight

outerHeight: number

outerWidth

outerWidth: number

pageXOffset

pageXOffset: number

pageYOffset

pageYOffset: number

parent

parent: Window

performance

performance: Performance

personalbar

personalbar: BarProp

screen

screen: Screen

screenLeft

screenLeft: number

screenTop

screenTop: number

screenX

screenX: number

screenY

screenY: number

scrollX

scrollX: number

scrollY

scrollY: number

scrollbars

scrollbars: BarProp

self

self: Window & globalThis

sessionStorage

sessionStorage: Storage

speechSynthesis

speechSynthesis: SpeechSynthesis

status

status: string

statusbar

statusbar: BarProp

styleMedia

styleMedia: StyleMedia

toolbar

toolbar: BarProp

top

top: Window

window

window: Window & globalThis

Methods

addEventListener

alert

  • alert(message?: any): void
  • Parameters

    • Optional message: any

    Returns void

atob

  • atob(encodedString: string): string

blur

  • blur(): void
  • Returns void

btoa

  • btoa(rawString: string): string

cancelAnimationFrame

  • cancelAnimationFrame(handle: number): void

captureEvents

  • captureEvents(): void
  • deprecated

    Returns void

clearInterval

  • clearInterval(handle?: undefined | number): void

clearTimeout

  • clearTimeout(handle?: undefined | number): void

close

  • close(): void
  • Returns void

confirm

  • confirm(message?: undefined | string): boolean
  • Parameters

    • Optional message: undefined | string

    Returns boolean

createImageBitmap

departFocus

dispatchEvent

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

focus

  • focus(): void
  • Returns void

getComputedStyle

  • getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration
  • Parameters

    • elt: Element
    • Optional pseudoElt: string | null

    Returns CSSStyleDeclaration

getMatchedCSSRules

  • getMatchedCSSRules(elt: Element, pseudoElt?: string | null): CSSRuleList
  • Parameters

    • elt: Element
    • Optional pseudoElt: string | null

    Returns CSSRuleList

getSelection

  • Returns Selection | null

matchMedia

  • Parameters

    • query: string

    Returns MediaQueryList

moveBy

  • moveBy(x: number, y: number): void
  • Parameters

    • x: number
    • y: number

    Returns void

moveTo

  • moveTo(x: number, y: number): void
  • Parameters

    • x: number
    • y: number

    Returns void

msWriteProfilerMark

  • msWriteProfilerMark(profilerMarkName: string): void
  • Parameters

    • profilerMarkName: string

    Returns void

open

  • open(url?: undefined | string, target?: undefined | string, features?: undefined | string, replace?: undefined | false | true): Window | null
  • Parameters

    • Optional url: undefined | string
    • Optional target: undefined | string
    • Optional features: undefined | string
    • Optional replace: undefined | false | true

    Returns Window | null

postMessage

  • postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void
  • Parameters

    • message: any
    • targetOrigin: string
    • Optional transfer: Transferable[]

    Returns void

print

  • print(): void
  • Returns void

prompt

  • prompt(message?: undefined | string, _default?: undefined | string): string | null
  • Parameters

    • Optional message: undefined | string
    • Optional _default: undefined | string

    Returns string | null

queueMicrotask

  • queueMicrotask(callback: Function): void

releaseEvents

  • releaseEvents(): void
  • deprecated

    Returns void

removeEventListener

requestAnimationFrame

resizeBy

  • resizeBy(x: number, y: number): void
  • Parameters

    • x: number
    • y: number

    Returns void

resizeTo

  • resizeTo(x: number, y: number): void
  • Parameters

    • x: number
    • y: number

    Returns void

scroll

  • scroll(options?: ScrollToOptions): void
  • scroll(x: number, y: number): void
  • Parameters

    Returns void

  • Parameters

    • x: number
    • y: number

    Returns void

scrollBy

  • scrollBy(options?: ScrollToOptions): void
  • scrollBy(x: number, y: number): void
  • Parameters

    Returns void

  • Parameters

    • x: number
    • y: number

    Returns void

scrollTo

  • scrollTo(options?: ScrollToOptions): void
  • scrollTo(x: number, y: number): void
  • Parameters

    Returns void

  • Parameters

    • x: number
    • y: number

    Returns void

setInterval

  • setInterval(handler: TimerHandler, timeout?: undefined | number, ...arguments: any[]): number

setTimeout

  • setTimeout(handler: TimerHandler, timeout?: undefined | number, ...arguments: any[]): number

stop

  • stop(): void
  • Returns void

webkitCancelAnimationFrame

  • webkitCancelAnimationFrame(handle: number): void
  • Parameters

    • handle: number

    Returns void

webkitConvertPointFromNodeToPage

webkitConvertPointFromPageToNode

webkitRequestAnimationFrame

  • Parameters

    Returns number

Generated using TypeDoc