Skip to main content

lib

Interfaces

Array

Type Parameters

Type Parameter
T

Indexable

[n: number]: T

Properties

[unscopables]
readonly [unscopables]: object;

Is an object whose properties have the value 'true' when they will be absent when used in a 'with' statement.

Index Signature
[key: number]: boolean
[iterator]?
optional [iterator]?: boolean;
[unscopables]?
readonly optional [unscopables]?: boolean;

Is an object whose properties have the value 'true' when they will be absent when used in a 'with' statement.

concat?
optional concat?: boolean;
copyWithin?
optional copyWithin?: boolean;
entries?
optional entries?: boolean;
every?
optional every?: boolean;
fill?
optional fill?: boolean;
filter?
optional filter?: boolean;
find?
optional find?: boolean;
findIndex?
optional findIndex?: boolean;
flat?
optional flat?: boolean;
flatMap?
optional flatMap?: boolean;
forEach?
optional forEach?: boolean;
includes?
optional includes?: boolean;
indexOf?
optional indexOf?: boolean;
join?
optional join?: boolean;
keys?
optional keys?: boolean;
lastIndexOf?
optional lastIndexOf?: boolean;
length?
optional length?: boolean;

Gets or sets the length of the array. This is a number one higher than the highest index in the array.

map?
optional map?: boolean;
pop?
optional pop?: boolean;
push?
optional push?: boolean;
reduce?
optional reduce?: boolean;
reduceRight?
optional reduceRight?: boolean;
reverse?
optional reverse?: boolean;
shift?
optional shift?: boolean;
slice?
optional slice?: boolean;
some?
optional some?: boolean;
sort?
optional sort?: boolean;
splice?
optional splice?: boolean;
toLocaleString?
optional toLocaleString?: boolean;
toString?
optional toString?: boolean;
unshift?
optional unshift?: boolean;
values?
optional values?: boolean;
length
length: number;

Gets or sets the length of the array. This is a number one higher than the highest index in the array.

Methods

[iterator]()
iterator: ArrayIterator<T>;

Iterator

Returns

ArrayIterator<T>

concat()
Call Signature
concat(...items): T[];

Combines two or more arrays. This method returns a new array without modifying any existing arrays.

Parameters
ParameterTypeDescription
...itemsConcatArray<T>[]Additional arrays and/or items to add to the end of the array.
Returns

T[]

Call Signature
concat(...items): T[];

Combines two or more arrays. This method returns a new array without modifying any existing arrays.

Parameters
ParameterTypeDescription
...items(T | ConcatArray<T>)[]Additional arrays and/or items to add to the end of the array.
Returns

T[]

copyWithin()
copyWithin(
target,
start,
end?): this;

Returns the this object after copying a section of the array identified by start and end to the same array starting at position target

Parameters
ParameterTypeDescription
targetnumberIf target is negative, it is treated as length+target where length is the length of the array.
startnumberIf start is negative, it is treated as length+start. If end is negative, it is treated as length+end.
end?numberIf not specified, length of the this object is used as its default value.
Returns

this

entries()
entries(): ArrayIterator<[number, T]>;

Returns an iterable of key, value pairs for every entry in the array

Returns

ArrayIterator<[number, T]>

every()
Call Signature
every<S>(predicate, thisArg?): this is S[];

Determines whether all the members of an array satisfy the specified test.

Type Parameters
Type Parameter
S
Parameters
ParameterTypeDescription
predicate(value, index, array) => value is SA function that accepts up to three arguments. The every method calls the predicate function for each element in the array until the predicate returns a value which is coercible to the Boolean value false, or until the end of the array.
thisArg?anyAn object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
Returns

this is S[]

Call Signature
every(predicate, thisArg?): boolean;

Determines whether all the members of an array satisfy the specified test.

Parameters
ParameterTypeDescription
predicate(value, index, array) => unknownA function that accepts up to three arguments. The every method calls the predicate function for each element in the array until the predicate returns a value which is coercible to the Boolean value false, or until the end of the array.
thisArg?anyAn object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
Returns

boolean

fill()
fill(
value,
start?,
end?): this;

Changes all array elements from start to end index to a static value and returns the modified array

Parameters
ParameterTypeDescription
valueTvalue to fill array section with
start?numberindex to start filling the array at. If start is negative, it is treated as length+start where length is the length of the array.
end?numberindex to stop filling the array at. If end is negative, it is treated as length+end.
Returns

this

filter()
Call Signature
filter<S>(predicate, thisArg?): S[];

Returns the elements of an array that meet the condition specified in a callback function.

Type Parameters
Type Parameter
S
Parameters
ParameterTypeDescription
predicate(value, index, array) => value is SA function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
thisArg?anyAn object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
Returns

S[]

Call Signature
filter(predicate, thisArg?): T[];

Returns the elements of an array that meet the condition specified in a callback function.

Parameters
ParameterTypeDescription
predicate(value, index, array) => unknownA function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
thisArg?anyAn object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
Returns

T[]

Call Signature
filter<U>(callbackfn, thisArg?): U[];
Type Parameters
Type Parameter
U
Parameters
ParameterType
callbackfn(a) => a is U
thisArg?any
Returns

U[]

find()
Call Signature
find<S>(predicate, thisArg?): S;

Returns the value of the first element in the array where predicate is true, and undefined otherwise.

Type Parameters
Type Parameter
S
Parameters
ParameterTypeDescription
predicate(value, index, obj) => value is Sfind calls predicate once for each element of the array, in ascending order, until it finds one where predicate returns true. If such an element is found, find immediately returns that element value. Otherwise, find returns undefined.
thisArg?anyIf provided, it will be used as the this value for each invocation of predicate. If it is not provided, undefined is used instead.
Returns

S

Call Signature
find(predicate, thisArg?): T;
Parameters
ParameterType
predicate(value, index, obj) => unknown
thisArg?any
Returns

T

Call Signature
find<U>(predicate): U;
Type Parameters
Type Parameter
U
Parameters
ParameterType
predicate(value, index, obj) => value is U
Returns

U

findIndex()
findIndex(predicate, thisArg?): number;

Returns the index of the first element in the array where predicate is true, and -1 otherwise.

Parameters
ParameterTypeDescription
predicate(value, index, obj) => unknownfind calls predicate once for each element of the array, in ascending order, until it finds one where predicate returns true. If such an element is found, findIndex immediately returns that element index. Otherwise, findIndex returns -1.
thisArg?anyIf provided, it will be used as the this value for each invocation of predicate. If it is not provided, undefined is used instead.
Returns

number

flat()
flat<A, D>(this, depth?): FlatArray<A, D>[];

Returns a new array with all sub-array elements concatenated into it recursively up to the specified depth.

Type Parameters
Type ParameterDefault type
A-
D extends number1
Parameters
ParameterTypeDescription
thisA-
depth?DThe maximum recursion depth
Returns

FlatArray<A, D>[]

flatMap()
flatMap<U, This>(callback, thisArg?): U[];

Calls a defined callback function on each element of an array. Then, flattens the result into a new array. This is identical to a map followed by flat with depth 1.

Type Parameters
Type ParameterDefault type
U-
Thisundefined
Parameters
ParameterTypeDescription
callback(this, value, index, array) => U | readonly U[]A function that accepts up to three arguments. The flatMap method calls the callback function one time for each element in the array.
thisArg?ThisAn object to which the this keyword can refer in the callback function. If thisArg is omitted, undefined is used as the this value.
Returns

U[]

forEach()
forEach(callbackfn, thisArg?): void;

Performs the specified action for each element in an array.

Parameters
ParameterTypeDescription
callbackfn(value, index, array) => voidA function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
thisArg?anyAn object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
Returns

void

includes()
includes(searchElement, fromIndex?): boolean;

Determines whether an array includes a certain element, returning true or false as appropriate.

Parameters
ParameterTypeDescription
searchElementTThe element to search for.
fromIndex?numberThe position in this array at which to begin searching for searchElement.
Returns

boolean

indexOf()
indexOf(searchElement, fromIndex?): number;

Returns the index of the first occurrence of a value in an array, or -1 if it is not present.

Parameters
ParameterTypeDescription
searchElementTThe value to locate in the array.
fromIndex?numberThe array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
Returns

number

join()
join(separator?): string;

Adds all the elements of an array into a string, separated by the specified separator string.

Parameters
ParameterTypeDescription
separator?stringA string used to separate one element of the array from the next in the resulting string. If omitted, the array elements are separated with a comma.
Returns

string

keys()
keys(): ArrayIterator<number>;

Returns an iterable of keys in the array

Returns

ArrayIterator<number>

lastIndexOf()
lastIndexOf(searchElement, fromIndex?): number;

Returns the index of the last occurrence of a specified value in an array, or -1 if it is not present.

Parameters
ParameterTypeDescription
searchElementTThe value to locate in the array.
fromIndex?numberThe array index at which to begin searching backward. If fromIndex is omitted, the search starts at the last index in the array.
Returns

number

map()
map<U>(callbackfn, thisArg?): U[];

Calls a defined callback function on each element of an array, and returns an array that contains the results.

Type Parameters
Type Parameter
U
Parameters
ParameterTypeDescription
callbackfn(value, index, array) => UA function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.
thisArg?anyAn object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
Returns

U[]

pop()
pop(): T;

Removes the last element from an array and returns it. If the array is empty, undefined is returned and the array is not modified.

Returns

T

push()
push(...items): number;

Appends new elements to the end of an array, and returns the new length of the array.

Parameters
ParameterTypeDescription
...itemsT[]New elements to add to the array.
Returns

number

reduce()
Call Signature
reduce(callbackfn): T;

Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

Parameters
ParameterTypeDescription
callbackfn(previousValue, currentValue, currentIndex, array) => TA function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
Returns

T

Call Signature
reduce(callbackfn, initialValue): T;
Parameters
ParameterType
callbackfn(previousValue, currentValue, currentIndex, array) => T
initialValueT
Returns

T

Call Signature
reduce<U>(callbackfn, initialValue): U;

Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

Type Parameters
Type Parameter
U
Parameters
ParameterTypeDescription
callbackfn(previousValue, currentValue, currentIndex, array) => UA function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
initialValueUIf initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
Returns

U

reduceRight()
Call Signature
reduceRight(callbackfn): T;

Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

Parameters
ParameterTypeDescription
callbackfn(previousValue, currentValue, currentIndex, array) => TA function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
Returns

T

Call Signature
reduceRight(callbackfn, initialValue): T;
Parameters
ParameterType
callbackfn(previousValue, currentValue, currentIndex, array) => T
initialValueT
Returns

T

Call Signature
reduceRight<U>(callbackfn, initialValue): U;

Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

Type Parameters
Type Parameter
U
Parameters
ParameterTypeDescription
callbackfn(previousValue, currentValue, currentIndex, array) => UA function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
initialValueUIf initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
Returns

U

reverse()
reverse(): T[];

Reverses the elements in an array in place. This method mutates the array and returns a reference to the same array.

Returns

T[]

shift()
shift(): T;

Removes the first element from an array and returns it. If the array is empty, undefined is returned and the array is not modified.

Returns

T

slice()
slice(start?, end?): T[];

Returns a copy of a section of an array. For both start and end, a negative index can be used to indicate an offset from the end of the array. For example, -2 refers to the second to last element of the array.

Parameters
ParameterTypeDescription
start?numberThe beginning index of the specified portion of the array. If start is undefined, then the slice begins at index 0.
end?numberThe end index of the specified portion of the array. This is exclusive of the element at the index 'end'. If end is undefined, then the slice extends to the end of the array.
Returns

T[]

some()
some(predicate, thisArg?): boolean;

Determines whether the specified callback function returns true for any element of an array.

Parameters
ParameterTypeDescription
predicate(value, index, array) => unknownA function that accepts up to three arguments. The some method calls the predicate function for each element in the array until the predicate returns a value which is coercible to the Boolean value true, or until the end of the array.
thisArg?anyAn object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
Returns

boolean

sort()
sort(compareFn?): this;

Sorts an array in place. This method mutates the array and returns a reference to the same array.

Parameters
ParameterTypeDescription
compareFn?(a, b) => numberFunction used to determine the order of the elements. It is expected to return a negative value if the first argument is less than the second argument, zero if they're equal, and a positive value otherwise. If omitted, the elements are sorted in ascending, ASCII character order. [11,2,22,1].sort((a, b) => a - b)
Returns

this

splice()
Call Signature
splice(start, deleteCount?): T[];

Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.

Parameters
ParameterTypeDescription
startnumberThe zero-based location in the array from which to start removing elements.
deleteCount?numberThe number of elements to remove.
Returns

T[]

An array containing the elements that were deleted.

Call Signature
splice(
start,
deleteCount, ...
items): T[];

Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.

Parameters
ParameterTypeDescription
startnumberThe zero-based location in the array from which to start removing elements.
deleteCountnumberThe number of elements to remove.
...itemsT[]Elements to insert into the array in place of the deleted elements.
Returns

T[]

An array containing the elements that were deleted.

toLocaleString()
Call Signature
toLocaleString(): string;

Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.

Returns

string

Call Signature
toLocaleString(locales, options?): string;
Parameters
ParameterType
localesstring | string[]
options?NumberFormatOptions & DateTimeFormatOptions
Returns

string

toString()
toString(): string;

Returns a string representation of an array.

Returns

string

unshift()
unshift(...items): number;

Inserts new elements at the start of an array, and returns the new length of the array.

Parameters
ParameterTypeDescription
...itemsT[]Elements to insert at the start of the array.
Returns

number

values()
values(): ArrayIterator<T>;

Returns an iterable of values in the array

Returns

ArrayIterator<T>


IdleCallbackDeadline

Properties

timeRemaining
timeRemaining: () => number;
Returns

number


Window

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

MDN Reference

Extends

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

Indexable

[index: number]: Window

Properties

caches
readonly caches: CacheStorage;

Available only in secure contexts.

MDN Reference

Inherited from
WindowOrWorkerGlobalScope.caches;
clientInformation
readonly clientInformation: Navigator;
Deprecated

This is a legacy alias of navigator.

MDN Reference

closed
readonly closed: boolean;

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

MDN Reference

crossOriginIsolated
readonly crossOriginIsolated: boolean;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/crossOriginIsolated)

###### Inherited from

```ts
WindowOrWorkerGlobalScope.crossOriginIsolated
crypto
readonly crypto: Crypto;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/crypto)

###### Inherited from

```ts
WindowOrWorkerGlobalScope.crypto
customElements
readonly customElements: CustomElementRegistry;

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

MDN Reference

devicePixelRatio
readonly devicePixelRatio: number;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/devicePixelRatio)

<a id="document"></a>

##### document

```ts
readonly document: Document;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/document)

<a id="event"></a>

##### ~~event~~

```ts
readonly event: Event;
Deprecated

MDN Reference

external
readonly external: External;
Deprecated

MDN Reference

frameElement
readonly frameElement: Element;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/frameElement)

<a id="frames"></a>

##### frames

```ts
readonly frames: Window;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/frames)

<a id="history"></a>

##### history

```ts
readonly history: History;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/history)

<a id="htmlelement"></a>

##### HTMLElement

```ts
HTMLElement: {
(): HTMLElement;
prototype: HTMLElement;
};
Returns

HTMLElement

prototype
prototype: HTMLElement;
indexedDB
readonly indexedDB: IDBFactory;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/indexedDB)

###### Inherited from

```ts
WindowOrWorkerGlobalScope.indexedDB
innerHeight
readonly innerHeight: number;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/innerHeight)

<a id="innerwidth"></a>

##### innerWidth

```ts
readonly innerWidth: number;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/innerWidth)

<a id="issecurecontext"></a>

##### isSecureContext

```ts
readonly isSecureContext: boolean;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/isSecureContext)

###### Inherited from

```ts
WindowOrWorkerGlobalScope.isSecureContext
length
readonly length: number;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/length)

<a id="localstorage"></a>

##### localStorage

```ts
readonly localStorage: Storage;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/localStorage)

###### Inherited from

```ts
WindowLocalStorage.localStorage
locationbar
readonly locationbar: BarProp;

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

MDN Reference

Math
Math: Math;
readonly menubar: BarProp;

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

MDN Reference

name
name: string;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/name)

<a id="navigator"></a>

##### navigator

```ts
readonly navigator: Navigator;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/navigator)

<a id="onabort"></a>

##### onabort

```ts
onabort: (this, ev) => any;

Fires when the user aborts the download.

Parameters
ParameterTypeDescription
thisGlobalEventHandlers-
evUIEventThe event. MDN Reference
Returns

any

Inherited from
GlobalEventHandlers.onabort;
onafterprint
onafterprint: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/afterprint_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `WindowEventHandlers` |
| `ev` | `Event` |

###### Returns

`any`

###### Inherited from

```ts
WindowEventHandlers.onafterprint
onanimationcancel
onanimationcancel: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationcancel_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `GlobalEventHandlers` |
| `ev` | `AnimationEvent` |

###### Returns

`any`

###### Inherited from

```ts
GlobalEventHandlers.onanimationcancel
onanimationend
onanimationend: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationend_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `GlobalEventHandlers` |
| `ev` | `AnimationEvent` |

###### Returns

`any`

###### Inherited from

```ts
GlobalEventHandlers.onanimationend
onanimationiteration
onanimationiteration: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationiteration_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `GlobalEventHandlers` |
| `ev` | `AnimationEvent` |

###### Returns

`any`

###### Inherited from

```ts
GlobalEventHandlers.onanimationiteration
onanimationstart
onanimationstart: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationstart_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `GlobalEventHandlers` |
| `ev` | `AnimationEvent` |

###### Returns

`any`

###### Inherited from

```ts
GlobalEventHandlers.onanimationstart
onauxclick
onauxclick: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/auxclick_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `GlobalEventHandlers` |
| `ev` | `MouseEvent` |

###### Returns

`any`

###### Inherited from

```ts
GlobalEventHandlers.onauxclick
onbeforeinput
onbeforeinput: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/beforeinput_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `GlobalEventHandlers` |
| `ev` | `InputEvent` |

###### Returns

`any`

###### Inherited from

```ts
GlobalEventHandlers.onbeforeinput
onbeforeprint
onbeforeprint: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/beforeprint_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `WindowEventHandlers` |
| `ev` | `Event` |

###### Returns

`any`

###### Inherited from

```ts
WindowEventHandlers.onbeforeprint
onbeforetoggle
onbeforetoggle: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/beforetoggle_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `GlobalEventHandlers` |
| `ev` | `Event` |

###### Returns

`any`

###### Inherited from

```ts
GlobalEventHandlers.onbeforetoggle
onbeforeunload
onbeforeunload: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/beforeunload_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `WindowEventHandlers` |
| `ev` | `BeforeUnloadEvent` |

###### Returns

`any`

###### Inherited from

```ts
WindowEventHandlers.onbeforeunload
onblur
onblur: (this, ev) => any;

Fires when the object loses the input focus.

Parameters
ParameterTypeDescription
thisGlobalEventHandlers-
evFocusEventThe focus event. MDN Reference
Returns

any

Inherited from
GlobalEventHandlers.onblur;
oncancel
oncancel: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/cancel_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `GlobalEventHandlers` |
| `ev` | `Event` |

###### Returns

`any`

###### Inherited from

```ts
GlobalEventHandlers.oncancel
oncanplay
oncanplay: (this, ev) => any;

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

Parameters
ParameterTypeDescription
thisGlobalEventHandlers-
evEventThe event. MDN Reference
Returns

any

Inherited from
GlobalEventHandlers.oncanplay;
oncanplaythrough
oncanplaythrough: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplaythrough_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `GlobalEventHandlers` |
| `ev` | `Event` |

###### Returns

`any`

###### Inherited from

```ts
GlobalEventHandlers.oncanplaythrough
onchange
onchange: (this, ev) => any;

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

Parameters
ParameterTypeDescription
thisGlobalEventHandlers-
evEventThe event. MDN Reference
Returns

any

Inherited from
GlobalEventHandlers.onchange;
onclick
onclick: (this, ev) => any;

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

Parameters
ParameterTypeDescription
thisGlobalEventHandlers-
evMouseEventThe mouse event. MDN Reference
Returns

any

Inherited from
GlobalEventHandlers.onclick;
onclose
onclose: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `GlobalEventHandlers` |
| `ev` | `Event` |

###### Returns

`any`

###### Inherited from

```ts
GlobalEventHandlers.onclose
oncontextlost
oncontextlost: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/webglcontextlost_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `GlobalEventHandlers` |
| `ev` | `Event` |

###### Returns

`any`

###### Inherited from

```ts
GlobalEventHandlers.oncontextlost
oncontextmenu
oncontextmenu: (this, ev) => any;

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

Parameters
ParameterTypeDescription
thisGlobalEventHandlers-
evMouseEventThe mouse event. MDN Reference
Returns

any

Inherited from
GlobalEventHandlers.oncontextmenu;
oncontextrestored
oncontextrestored: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextrestored_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `GlobalEventHandlers` |
| `ev` | `Event` |

###### Returns

`any`

###### Inherited from

```ts
GlobalEventHandlers.oncontextrestored
oncopy
oncopy: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/copy_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `GlobalEventHandlers` |
| `ev` | `ClipboardEvent` |

###### Returns

`any`

###### Inherited from

```ts
GlobalEventHandlers.oncopy
oncuechange
oncuechange: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/cuechange_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `GlobalEventHandlers` |
| `ev` | `Event` |

###### Returns

`any`

###### Inherited from

```ts
GlobalEventHandlers.oncuechange
oncut
oncut: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/cut_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `GlobalEventHandlers` |
| `ev` | `ClipboardEvent` |

###### Returns

`any`

###### Inherited from

```ts
GlobalEventHandlers.oncut
ondblclick
ondblclick: (this, ev) => any;

Fires when the user double-clicks the object.

Parameters
ParameterTypeDescription
thisGlobalEventHandlers-
evMouseEventThe mouse event. MDN Reference
Returns

any

Inherited from
GlobalEventHandlers.ondblclick;
ondevicemotion
ondevicemotion: (this, ev) => any;

Available only in secure contexts.

MDN Reference

Parameters
ParameterType
thisWindow
evDeviceMotionEvent
Returns

any

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

Available only in secure contexts.

MDN Reference

Parameters
ParameterType
thisWindow
evDeviceOrientationEvent
Returns

any

ondeviceorientationabsolute
ondeviceorientationabsolute: (this, ev) => any;

Available only in secure contexts.

MDN Reference

Parameters
ParameterType
thisWindow
evDeviceOrientationEvent
Returns

any

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

Fires on the source object continuously during a drag operation.

Parameters
ParameterTypeDescription
thisGlobalEventHandlers-
evDragEventThe event. MDN Reference
Returns

any

Inherited from
GlobalEventHandlers.ondrag;
ondragend
ondragend: (this, ev) => any;

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

Parameters
ParameterTypeDescription
thisGlobalEventHandlers-
evDragEventThe event. MDN Reference
Returns

any

Inherited from
GlobalEventHandlers.ondragend;
ondragenter
ondragenter: (this, ev) => any;

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

Parameters
ParameterTypeDescription
thisGlobalEventHandlers-
evDragEventThe drag event. MDN Reference
Returns

any

Inherited from
GlobalEventHandlers.ondragenter;
ondragleave
ondragleave: (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
ParameterTypeDescription
thisGlobalEventHandlers-
evDragEventThe drag event. MDN Reference
Returns

any

Inherited from
GlobalEventHandlers.ondragleave;
ondragover
ondragover: (this, ev) => any;

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

Parameters
ParameterTypeDescription
thisGlobalEventHandlers-
evDragEventThe event. MDN Reference
Returns

any

Inherited from
GlobalEventHandlers.ondragover;
ondragstart
ondragstart: (this, ev) => any;

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

Parameters
ParameterTypeDescription
thisGlobalEventHandlers-
evDragEventThe event. MDN Reference
Returns

any

Inherited from
GlobalEventHandlers.ondragstart;
ondrop
ondrop: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drop_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `GlobalEventHandlers` |
| `ev` | `DragEvent` |

###### Returns

`any`

###### Inherited from

```ts
GlobalEventHandlers.ondrop
ondurationchange
ondurationchange: (this, ev) => any;

Occurs when the duration attribute is updated.

Parameters
ParameterTypeDescription
thisGlobalEventHandlers-
evEventThe event. MDN Reference
Returns

any

Inherited from
GlobalEventHandlers.ondurationchange;
onemptied
onemptied: (this, ev) => any;

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

Parameters
ParameterTypeDescription
thisGlobalEventHandlers-
evEventThe event. MDN Reference
Returns

any

Inherited from
GlobalEventHandlers.onemptied;
onended
onended: (this, ev) => any;

Occurs when the end of playback is reached.

Parameters
ParameterTypeDescription
thisGlobalEventHandlers-
evEventThe event MDN Reference
Returns

any

Inherited from
GlobalEventHandlers.onended;
onerror
onerror: OnErrorEventHandlerNonNull;

Fires when an error occurs during object loading.

Param

The event.

MDN Reference

Inherited from
GlobalEventHandlers.onerror;
onfocus
onfocus: (this, ev) => any;

Fires when the object receives focus.

Parameters
ParameterTypeDescription
thisGlobalEventHandlers-
evFocusEventThe event. MDN Reference
Returns

any

Inherited from
GlobalEventHandlers.onfocus;
onformdata
onformdata: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/formdata_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `GlobalEventHandlers` |
| `ev` | `FormDataEvent` |

###### Returns

`any`

###### Inherited from

```ts
GlobalEventHandlers.onformdata
ongamepadconnected
ongamepadconnected: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/gamepadconnected_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `WindowEventHandlers` |
| `ev` | `GamepadEvent` |

###### Returns

`any`

###### Inherited from

```ts
WindowEventHandlers.ongamepadconnected
ongamepaddisconnected
ongamepaddisconnected: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/gamepaddisconnected_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `WindowEventHandlers` |
| `ev` | `GamepadEvent` |

###### Returns

`any`

###### Inherited from

```ts
WindowEventHandlers.ongamepaddisconnected
ongotpointercapture
ongotpointercapture: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/gotpointercapture_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `GlobalEventHandlers` |
| `ev` | `PointerEvent` |

###### Returns

`any`

###### Inherited from

```ts
GlobalEventHandlers.ongotpointercapture
onhashchange
onhashchange: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/hashchange_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `WindowEventHandlers` |
| `ev` | `HashChangeEvent` |

###### Returns

`any`

###### Inherited from

```ts
WindowEventHandlers.onhashchange
oninput
oninput: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/input_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `GlobalEventHandlers` |
| `ev` | `Event` |

###### Returns

`any`

###### Inherited from

```ts
GlobalEventHandlers.oninput
oninvalid
oninvalid: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/invalid_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `GlobalEventHandlers` |
| `ev` | `Event` |

###### Returns

`any`

###### Inherited from

```ts
GlobalEventHandlers.oninvalid
onkeydown
onkeydown: (this, ev) => any;

Fires when the user presses a key.

Parameters
ParameterTypeDescription
thisGlobalEventHandlers-
evKeyboardEventThe keyboard event MDN Reference
Returns

any

Inherited from
GlobalEventHandlers.onkeydown;
onkeypress
onkeypress: (this, ev) => any;

Fires when the user presses an alphanumeric key.

Parameters
ParameterTypeDescription
thisGlobalEventHandlers-
evKeyboardEventThe event.
Returns

any

Deprecated

MDN Reference

Inherited from
GlobalEventHandlers.onkeypress;
onkeyup
onkeyup: (this, ev) => any;

Fires when the user releases a key.

Parameters
ParameterTypeDescription
thisGlobalEventHandlers-
evKeyboardEventThe keyboard event MDN Reference
Returns

any

Inherited from
GlobalEventHandlers.onkeyup;
onlanguagechange
onlanguagechange: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/languagechange_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `WindowEventHandlers` |
| `ev` | `Event` |

###### Returns

`any`

###### Inherited from

```ts
WindowEventHandlers.onlanguagechange
onload
onload: (this, ev) => any;

Fires immediately after the browser loads the object.

Parameters
ParameterTypeDescription
thisGlobalEventHandlers-
evEventThe event. MDN Reference
Returns

any

Inherited from
GlobalEventHandlers.onload;
onloadeddata
onloadeddata: (this, ev) => any;

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

Parameters
ParameterTypeDescription
thisGlobalEventHandlers-
evEventThe event. MDN Reference
Returns

any

Inherited from
GlobalEventHandlers.onloadeddata;
onloadedmetadata
onloadedmetadata: (this, ev) => any;

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

Parameters
ParameterTypeDescription
thisGlobalEventHandlers-
evEventThe event. MDN Reference
Returns

any

Inherited from
GlobalEventHandlers.onloadedmetadata;
onloadstart
onloadstart: (this, ev) => any;

Occurs when Internet Explorer begins looking for media data.

Parameters
ParameterTypeDescription
thisGlobalEventHandlers-
evEventThe event. MDN Reference
Returns

any

Inherited from
GlobalEventHandlers.onloadstart;
onlostpointercapture
onlostpointercapture: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/lostpointercapture_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `GlobalEventHandlers` |
| `ev` | `PointerEvent` |

###### Returns

`any`

###### Inherited from

```ts
GlobalEventHandlers.onlostpointercapture
onmessage
onmessage: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/message_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `WindowEventHandlers` |
| `ev` | `MessageEvent` |

###### Returns

`any`

###### Inherited from

```ts
WindowEventHandlers.onmessage
onmessageerror
onmessageerror: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/messageerror_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `WindowEventHandlers` |
| `ev` | `MessageEvent` |

###### Returns

`any`

###### Inherited from

```ts
WindowEventHandlers.onmessageerror
onmousedown
onmousedown: (this, ev) => any;

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

Parameters
ParameterTypeDescription
thisGlobalEventHandlers-
evMouseEventThe mouse event. MDN Reference
Returns

any

Inherited from
GlobalEventHandlers.onmousedown;
onmouseenter
onmouseenter: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseenter_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `GlobalEventHandlers` |
| `ev` | `MouseEvent` |

###### Returns

`any`

###### Inherited from

```ts
GlobalEventHandlers.onmouseenter
onmouseleave
onmouseleave: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseleave_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `GlobalEventHandlers` |
| `ev` | `MouseEvent` |

###### Returns

`any`

###### Inherited from

```ts
GlobalEventHandlers.onmouseleave
onmousemove
onmousemove: (this, ev) => any;

Fires when the user moves the mouse over the object.

Parameters
ParameterTypeDescription
thisGlobalEventHandlers-
evMouseEventThe mouse event. MDN Reference
Returns

any

Inherited from
GlobalEventHandlers.onmousemove;
onmouseout
onmouseout: (this, ev) => any;

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

Parameters
ParameterTypeDescription
thisGlobalEventHandlers-
evMouseEventThe mouse event. MDN Reference
Returns

any

Inherited from
GlobalEventHandlers.onmouseout;
onmouseover
onmouseover: (this, ev) => any;

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

Parameters
ParameterTypeDescription
thisGlobalEventHandlers-
evMouseEventThe mouse event. MDN Reference
Returns

any

Inherited from
GlobalEventHandlers.onmouseover;
onmouseup
onmouseup: (this, ev) => any;

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

Parameters
ParameterTypeDescription
thisGlobalEventHandlers-
evMouseEventThe mouse event. MDN Reference
Returns

any

Inherited from
GlobalEventHandlers.onmouseup;
onoffline
onoffline: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/offline_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `WindowEventHandlers` |
| `ev` | `Event` |

###### Returns

`any`

###### Inherited from

```ts
WindowEventHandlers.onoffline
ononline
ononline: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/online_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `WindowEventHandlers` |
| `ev` | `Event` |

###### Returns

`any`

###### Inherited from

```ts
WindowEventHandlers.ononline
onorientationchange
onorientationchange: (this, ev) => any;
Parameters
ParameterType
thisWindow
evEvent
Returns

any

Deprecated

MDN Reference

onpagehide
onpagehide: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pagehide_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `WindowEventHandlers` |
| `ev` | `PageTransitionEvent` |

###### Returns

`any`

###### Inherited from

```ts
WindowEventHandlers.onpagehide
onpageshow
onpageshow: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pageshow_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `WindowEventHandlers` |
| `ev` | `PageTransitionEvent` |

###### Returns

`any`

###### Inherited from

```ts
WindowEventHandlers.onpageshow
onpaste
onpaste: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/paste_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `GlobalEventHandlers` |
| `ev` | `ClipboardEvent` |

###### Returns

`any`

###### Inherited from

```ts
GlobalEventHandlers.onpaste
onpause
onpause: (this, ev) => any;

Occurs when playback is paused.

Parameters
ParameterTypeDescription
thisGlobalEventHandlers-
evEventThe event. MDN Reference
Returns

any

Inherited from
GlobalEventHandlers.onpause;
onplay
onplay: (this, ev) => any;

Occurs when the play method is requested.

Parameters
ParameterTypeDescription
thisGlobalEventHandlers-
evEventThe event. MDN Reference
Returns

any

Inherited from
GlobalEventHandlers.onplay;
onplaying
onplaying: (this, ev) => any;

Occurs when the audio or video has started playing.

Parameters
ParameterTypeDescription
thisGlobalEventHandlers-
evEventThe event. MDN Reference
Returns

any

Inherited from
GlobalEventHandlers.onplaying;
onpointercancel
onpointercancel: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointercancel_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `GlobalEventHandlers` |
| `ev` | `PointerEvent` |

###### Returns

`any`

###### Inherited from

```ts
GlobalEventHandlers.onpointercancel
onpointerdown
onpointerdown: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerdown_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `GlobalEventHandlers` |
| `ev` | `PointerEvent` |

###### Returns

`any`

###### Inherited from

```ts
GlobalEventHandlers.onpointerdown
onpointerenter
onpointerenter: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerenter_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `GlobalEventHandlers` |
| `ev` | `PointerEvent` |

###### Returns

`any`

###### Inherited from

```ts
GlobalEventHandlers.onpointerenter
onpointerleave
onpointerleave: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerleave_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `GlobalEventHandlers` |
| `ev` | `PointerEvent` |

###### Returns

`any`

###### Inherited from

```ts
GlobalEventHandlers.onpointerleave
onpointermove
onpointermove: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointermove_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `GlobalEventHandlers` |
| `ev` | `PointerEvent` |

###### Returns

`any`

###### Inherited from

```ts
GlobalEventHandlers.onpointermove
onpointerout
onpointerout: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerout_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `GlobalEventHandlers` |
| `ev` | `PointerEvent` |

###### Returns

`any`

###### Inherited from

```ts
GlobalEventHandlers.onpointerout
onpointerover
onpointerover: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerover_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `GlobalEventHandlers` |
| `ev` | `PointerEvent` |

###### Returns

`any`

###### Inherited from

```ts
GlobalEventHandlers.onpointerover
onpointerup
onpointerup: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerup_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `GlobalEventHandlers` |
| `ev` | `PointerEvent` |

###### Returns

`any`

###### Inherited from

```ts
GlobalEventHandlers.onpointerup
onpopstate
onpopstate: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/popstate_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `WindowEventHandlers` |
| `ev` | `PopStateEvent` |

###### Returns

`any`

###### Inherited from

```ts
WindowEventHandlers.onpopstate
onprogress
onprogress: (this, ev) => any;

Occurs to indicate progress while downloading media data.

Parameters
ParameterTypeDescription
thisGlobalEventHandlers-
evProgressEventThe event. MDN Reference
Returns

any

Inherited from
GlobalEventHandlers.onprogress;
onratechange
onratechange: (this, ev) => any;

Occurs when the playback rate is increased or decreased.

Parameters
ParameterTypeDescription
thisGlobalEventHandlers-
evEventThe event. MDN Reference
Returns

any

Inherited from
GlobalEventHandlers.onratechange;
onrejectionhandled
onrejectionhandled: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/rejectionhandled_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `WindowEventHandlers` |
| `ev` | `PromiseRejectionEvent` |

###### Returns

`any`

###### Inherited from

```ts
WindowEventHandlers.onrejectionhandled
onreset
onreset: (this, ev) => any;

Fires when the user resets a form.

Parameters
ParameterTypeDescription
thisGlobalEventHandlers-
evEventThe event. MDN Reference
Returns

any

Inherited from
GlobalEventHandlers.onreset;
onresize
onresize: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/resize_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `GlobalEventHandlers` |
| `ev` | `UIEvent` |

###### Returns

`any`

###### Inherited from

```ts
GlobalEventHandlers.onresize
onscroll
onscroll: (this, ev) => any;

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

Parameters
ParameterTypeDescription
thisGlobalEventHandlers-
evEventThe event. MDN Reference
Returns

any

Inherited from
GlobalEventHandlers.onscroll;
onscrollend
onscrollend: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scrollend_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `GlobalEventHandlers` |
| `ev` | `Event` |

###### Returns

`any`

###### Inherited from

```ts
GlobalEventHandlers.onscrollend
onsecuritypolicyviolation
onsecuritypolicyviolation: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/securitypolicyviolation_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `GlobalEventHandlers` |
| `ev` | `SecurityPolicyViolationEvent` |

###### Returns

`any`

###### Inherited from

```ts
GlobalEventHandlers.onsecuritypolicyviolation
onseeked
onseeked: (this, ev) => any;

Occurs when the seek operation ends.

Parameters
ParameterTypeDescription
thisGlobalEventHandlers-
evEventThe event. MDN Reference
Returns

any

Inherited from
GlobalEventHandlers.onseeked;
onseeking
onseeking: (this, ev) => any;

Occurs when the current playback position is moved.

Parameters
ParameterTypeDescription
thisGlobalEventHandlers-
evEventThe event. MDN Reference
Returns

any

Inherited from
GlobalEventHandlers.onseeking;
onselect
onselect: (this, ev) => any;

Fires when the current selection changes.

Parameters
ParameterTypeDescription
thisGlobalEventHandlers-
evEventThe event. MDN Reference
Returns

any

Inherited from
GlobalEventHandlers.onselect;
onselectionchange
onselectionchange: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/selectionchange_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `GlobalEventHandlers` |
| `ev` | `Event` |

###### Returns

`any`

###### Inherited from

```ts
GlobalEventHandlers.onselectionchange
onselectstart
onselectstart: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/selectstart_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `GlobalEventHandlers` |
| `ev` | `Event` |

###### Returns

`any`

###### Inherited from

```ts
GlobalEventHandlers.onselectstart
onslotchange
onslotchange: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/slotchange_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `GlobalEventHandlers` |
| `ev` | `Event` |

###### Returns

`any`

###### Inherited from

```ts
GlobalEventHandlers.onslotchange
onstalled
onstalled: (this, ev) => any;

Occurs when the download has stopped.

Parameters
ParameterTypeDescription
thisGlobalEventHandlers-
evEventThe event. MDN Reference
Returns

any

Inherited from
GlobalEventHandlers.onstalled;
onstorage
onstorage: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/storage_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `WindowEventHandlers` |
| `ev` | `StorageEvent` |

###### Returns

`any`

###### Inherited from

```ts
WindowEventHandlers.onstorage
onsubmit
onsubmit: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/submit_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `GlobalEventHandlers` |
| `ev` | `SubmitEvent` |

###### Returns

`any`

###### Inherited from

```ts
GlobalEventHandlers.onsubmit
onsuspend
onsuspend: (this, ev) => any;

Occurs if the load operation has been intentionally halted.

Parameters
ParameterTypeDescription
thisGlobalEventHandlers-
evEventThe event. MDN Reference
Returns

any

Inherited from
GlobalEventHandlers.onsuspend;
ontimeupdate
ontimeupdate: (this, ev) => any;

Occurs to indicate the current playback position.

Parameters
ParameterTypeDescription
thisGlobalEventHandlers-
evEventThe event. MDN Reference
Returns

any

Inherited from
GlobalEventHandlers.ontimeupdate;
ontoggle
ontoggle: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/toggle_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `GlobalEventHandlers` |
| `ev` | `Event` |

###### Returns

`any`

###### Inherited from

```ts
GlobalEventHandlers.ontoggle
ontouchcancel?
optional ontouchcancel?: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchcancel_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `GlobalEventHandlers` |
| `ev` | `TouchEvent` |

###### Returns

`any`

###### Inherited from

```ts
GlobalEventHandlers.ontouchcancel
ontouchend?
optional ontouchend?: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchend_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `GlobalEventHandlers` |
| `ev` | `TouchEvent` |

###### Returns

`any`

###### Inherited from

```ts
GlobalEventHandlers.ontouchend
ontouchmove?
optional ontouchmove?: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchmove_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `GlobalEventHandlers` |
| `ev` | `TouchEvent` |

###### Returns

`any`

###### Inherited from

```ts
GlobalEventHandlers.ontouchmove
ontouchstart?
optional ontouchstart?: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchstart_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `GlobalEventHandlers` |
| `ev` | `TouchEvent` |

###### Returns

`any`

###### Inherited from

```ts
GlobalEventHandlers.ontouchstart
ontransitioncancel
ontransitioncancel: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitioncancel_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `GlobalEventHandlers` |
| `ev` | `TransitionEvent` |

###### Returns

`any`

###### Inherited from

```ts
GlobalEventHandlers.ontransitioncancel
ontransitionend
ontransitionend: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionend_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `GlobalEventHandlers` |
| `ev` | `TransitionEvent` |

###### Returns

`any`

###### Inherited from

```ts
GlobalEventHandlers.ontransitionend
ontransitionrun
ontransitionrun: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionrun_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `GlobalEventHandlers` |
| `ev` | `TransitionEvent` |

###### Returns

`any`

###### Inherited from

```ts
GlobalEventHandlers.ontransitionrun
ontransitionstart
ontransitionstart: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionstart_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `GlobalEventHandlers` |
| `ev` | `TransitionEvent` |

###### Returns

`any`

###### Inherited from

```ts
GlobalEventHandlers.ontransitionstart
onunhandledrejection
onunhandledrejection: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unhandledrejection_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `WindowEventHandlers` |
| `ev` | `PromiseRejectionEvent` |

###### Returns

`any`

###### Inherited from

```ts
WindowEventHandlers.onunhandledrejection
onunload
onunload: (this, ev) => any;
Parameters
ParameterType
thisWindowEventHandlers
evEvent
Returns

any

Deprecated

MDN Reference

Inherited from
WindowEventHandlers.onunload;
onvolumechange
onvolumechange: (this, ev) => any;

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

Parameters
ParameterTypeDescription
thisGlobalEventHandlers-
evEventThe event. MDN Reference
Returns

any

Inherited from
GlobalEventHandlers.onvolumechange;
onwaiting
onwaiting: (this, ev) => any;

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

Parameters
ParameterTypeDescription
thisGlobalEventHandlers-
evEventThe event. MDN Reference
Returns

any

Inherited from
GlobalEventHandlers.onwaiting;
onwebkitanimationend
onwebkitanimationend: (this, ev) => any;
Parameters
ParameterType
thisGlobalEventHandlers
evEvent
Returns

any

Deprecated

This is a legacy alias of onanimationend.

MDN Reference

Inherited from
GlobalEventHandlers.onwebkitanimationend;
onwebkitanimationiteration
onwebkitanimationiteration: (this, ev) => any;
Parameters
ParameterType
thisGlobalEventHandlers
evEvent
Returns

any

Deprecated

This is a legacy alias of onanimationiteration.

MDN Reference

Inherited from
GlobalEventHandlers.onwebkitanimationiteration;
onwebkitanimationstart
onwebkitanimationstart: (this, ev) => any;
Parameters
ParameterType
thisGlobalEventHandlers
evEvent
Returns

any

Deprecated

This is a legacy alias of onanimationstart.

MDN Reference

Inherited from
GlobalEventHandlers.onwebkitanimationstart;
onwebkittransitionend
onwebkittransitionend: (this, ev) => any;
Parameters
ParameterType
thisGlobalEventHandlers
evEvent
Returns

any

Deprecated

This is a legacy alias of ontransitionend.

MDN Reference

Inherited from
GlobalEventHandlers.onwebkittransitionend;
onwheel
onwheel: (this, ev) => any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/wheel_event)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `this` | `GlobalEventHandlers` |
| `ev` | `WheelEvent` |

###### Returns

`any`

###### Inherited from

```ts
GlobalEventHandlers.onwheel
opener
opener: any;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/opener)

<a id="orientation"></a>

##### ~~orientation~~

```ts
readonly orientation: number;
Deprecated

MDN Reference

origin
readonly origin: string;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/origin)

###### Inherited from

```ts
WindowOrWorkerGlobalScope.origin
outerHeight
readonly outerHeight: number;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/outerHeight)

<a id="outerwidth"></a>

##### outerWidth

```ts
readonly outerWidth: number;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/outerWidth)

<a id="pagexoffset"></a>

##### ~~pageXOffset~~

```ts
readonly pageXOffset: number;
Deprecated

This is a legacy alias of scrollX.

MDN Reference

pageYOffset
readonly pageYOffset: number;
Deprecated

This is a legacy alias of scrollY.

MDN Reference

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

performance
readonly performance: Performance;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/performance)

###### Inherited from

```ts
WindowOrWorkerGlobalScope.performance
personalbar
readonly personalbar: BarProp;

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

MDN Reference

screen
readonly screen: Screen;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screen)

<a id="screenleft"></a>

##### screenLeft

```ts
readonly screenLeft: number;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenLeft)

<a id="screentop"></a>

##### screenTop

```ts
readonly screenTop: number;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenTop)

<a id="screenx"></a>

##### screenX

```ts
readonly screenX: number;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenX)

<a id="screeny"></a>

##### screenY

```ts
readonly screenY: number;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenY)

<a id="scrollbars"></a>

##### scrollbars

```ts
readonly scrollbars: BarProp;

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

MDN Reference

scrollX
readonly scrollX: number;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX)

<a id="scrolly"></a>

##### scrollY

```ts
readonly scrollY: number;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY)

<a id="self"></a>

##### self

```ts
readonly self: Window & typeof globalThis;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/self)

<a id="sessionstorage"></a>

##### sessionStorage

```ts
readonly sessionStorage: Storage;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/sessionStorage)

###### Inherited from

```ts
WindowSessionStorage.sessionStorage
speechSynthesis
readonly speechSynthesis: SpeechSynthesis;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/speechSynthesis)

<a id="status"></a>

##### ~~status~~

```ts
status: string;
Deprecated

MDN Reference

statusbar
readonly statusbar: BarProp;

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

MDN Reference

toolbar
readonly toolbar: BarProp;

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

MDN Reference

top
readonly top: Window;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/top)

<a id="visualviewport"></a>

##### visualViewport

```ts
readonly visualViewport: VisualViewport;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/visualViewport)

<a id="window-1"></a>

##### window

```ts
readonly window: Window & typeof globalThis;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/window)

#### Accessors

<a id="location"></a>

##### location

###### Get Signature

```ts
get location(): Location;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/location)

###### Returns

`Location`

###### Set Signature

```ts
set location(href): void;
Parameters
ParameterType
hrefstring | Location
Returns

void

Methods

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
Type Parameter
K extends keyof WindowEventMap
Parameters
ParameterType
typeK
listener(this, ev) => any
options?boolean | AddEventListenerOptions
Returns

void

Overrides
EventTarget.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
ParameterType
typestring
listenerEventListenerOrEventListenerObject
options?boolean | AddEventListenerOptions
Returns

void

Overrides
EventTarget.addEventListener;
alert()
alert(message?): void;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/alert)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `message?` | `any` |

###### Returns

`void`

<a id="atob"></a>

##### atob()

```ts
atob(data): string;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/atob)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `data` | `string` |

###### Returns

`string`

###### Inherited from

```ts
WindowOrWorkerGlobalScope.atob
blur()
blur(): void;
Returns

void

Deprecated

MDN Reference

btoa()
btoa(data): string;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/btoa)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `data` | `string` |

###### Returns

`string`

###### Inherited from

```ts
WindowOrWorkerGlobalScope.btoa
cancelAnimationFrame()
cancelAnimationFrame(handle): void;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/cancelAnimationFrame)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `handle` | `number` |

###### Returns

`void`

###### Inherited from

```ts
AnimationFrameProvider.cancelAnimationFrame
cancelIdleCallback()
cancelIdleCallback(handle): void;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/cancelIdleCallback)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `handle` | `number` |

###### Returns

`void`

<a id="captureevents"></a>

##### ~~captureEvents()~~

```ts
captureEvents(): void;
Returns

void

Deprecated

MDN Reference

clearInterval()
clearInterval(id): void;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/clearInterval)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `id` | `number` |

###### Returns

`void`

###### Inherited from

```ts
WindowOrWorkerGlobalScope.clearInterval
clearTimeout()
clearTimeout(id): void;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/clearTimeout)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `id` | `number` |

###### Returns

`void`

###### Inherited from

```ts
WindowOrWorkerGlobalScope.clearTimeout
close()
close(): void;

Closes the window.

MDN Reference

Returns

void

confirm()
confirm(message?): boolean;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/confirm)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `message?` | `string` |

###### Returns

`boolean`

<a id="createimagebitmap"></a>

##### createImageBitmap()

###### Call Signature

```ts
createImageBitmap(image, options?): Promise<ImageBitmap>;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/createImageBitmap)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `image` | `ImageBitmapSource` |
| `options?` | `ImageBitmapOptions` |

###### Returns

[`Promise`](finally.md#promise)\<`ImageBitmap`\>

###### Inherited from

```ts
WindowOrWorkerGlobalScope.createImageBitmap
Call Signature
createImageBitmap(
image,
sx,
sy,
sw,
sh,
options?): Promise<ImageBitmap>;
Parameters
ParameterType
imageImageBitmapSource
sxnumber
synumber
swnumber
shnumber
options?ImageBitmapOptions
Returns

Promise<ImageBitmap>

Inherited from
WindowOrWorkerGlobalScope.createImageBitmap;
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
ParameterType
eventEvent
Returns

boolean

Inherited from
EventTarget.dispatchEvent;
fetch()
fetch(input, init?): Promise<Response>;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/fetch)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `input` | `URL` \| `RequestInfo` |
| `init?` | `RequestInit` |

###### Returns

[`Promise`](finally.md#promise)\<`Response`\>

###### Inherited from

```ts
WindowOrWorkerGlobalScope.fetch
focus()
focus(): void;

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

MDN Reference

Returns

void

getComputedStyle()
getComputedStyle(elt, pseudoElt?): CSSStyleDeclaration;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `elt` | `Element` |
| `pseudoElt?` | `string` |

###### Returns

`CSSStyleDeclaration`

<a id="getselection"></a>

##### getSelection()

```ts
getSelection(): Selection;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getSelection)

###### Returns

`Selection`

<a id="matchmedia"></a>

##### matchMedia()

```ts
matchMedia(query): MediaQueryList;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/matchMedia)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `query` | `string` |

###### Returns

`MediaQueryList`

<a id="moveby"></a>

##### moveBy()

```ts
moveBy(x, y): void;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/moveBy)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `x` | `number` |
| `y` | `number` |

###### Returns

`void`

<a id="moveto"></a>

##### moveTo()

```ts
moveTo(x, y): void;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/moveTo)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `x` | `number` |
| `y` | `number` |

###### Returns

`void`

<a id="open"></a>

##### open()

```ts
open(
url?,
target?,
features?): Window;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/open)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `url?` | `string` \| `URL` |
| `target?` | `string` |
| `features?` | `string` |

###### Returns

[`Window`](#window)

<a id="postmessage"></a>

##### postMessage()

###### Call Signature

```ts
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
ParameterType
messageany
targetOriginstring
transfer?Transferable[]
Returns

void

Call Signature
postMessage(message, options?): void;
Parameters
ParameterType
messageany
options?WindowPostMessageOptions
Returns

void

print()
print(): void;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/print)

###### Returns

`void`

<a id="prompt"></a>

##### prompt()

```ts
prompt(message?, default?): string;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/prompt)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `message?` | `string` |
| `default?` | `string` |

###### Returns

`string`

<a id="queuemicrotask"></a>

##### queueMicrotask()

```ts
queueMicrotask(callback): void;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/queueMicrotask)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `callback` | `VoidFunction` |

###### Returns

`void`

###### Inherited from

```ts
WindowOrWorkerGlobalScope.queueMicrotask
releaseEvents()
releaseEvents(): void;
Returns

void

Deprecated

MDN Reference

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
Type Parameter
K extends keyof WindowEventMap
Parameters
ParameterType
typeK
listener(this, ev) => any
options?boolean | EventListenerOptions
Returns

void

Overrides
EventTarget.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
ParameterType
typestring
listenerEventListenerOrEventListenerObject
options?boolean | EventListenerOptions
Returns

void

Overrides
EventTarget.removeEventListener;
reportError()
reportError(e): void;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/reportError)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `e` | `any` |

###### Returns

`void`

###### Inherited from

```ts
WindowOrWorkerGlobalScope.reportError
requestAnimationFrame()
requestAnimationFrame(callback): number;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `callback` | `FrameRequestCallback` |

###### Returns

`number`

###### Inherited from

```ts
AnimationFrameProvider.requestAnimationFrame
requestIdleCallback()
Call Signature
requestIdleCallback(callback, options?): number;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/requestIdleCallback)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `callback` | `IdleRequestCallback` |
| `options?` | `IdleRequestOptions` |

###### Returns

`number`

###### Call Signature

```ts
requestIdleCallback(callback): () => void;
Parameters
ParameterType
callback(deadline) => void
Returns

() => void

resizeBy()
resizeBy(x, y): void;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/resizeBy)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `x` | `number` |
| `y` | `number` |

###### Returns

`void`

<a id="resizeto"></a>

##### resizeTo()

```ts
resizeTo(width, height): void;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/resizeTo)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `width` | `number` |
| `height` | `number` |

###### Returns

`void`

<a id="scroll"></a>

##### scroll()

###### Call Signature

```ts
scroll(options?): void;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scroll)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `options?` | `ScrollToOptions` |

###### Returns

`void`

###### Call Signature

```ts
scroll(x, y): void;
Parameters
ParameterType
xnumber
ynumber
Returns

void

scrollBy()
Call Signature
scrollBy(options?): void;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollBy)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `options?` | `ScrollToOptions` |

###### Returns

`void`

###### Call Signature

```ts
scrollBy(x, y): void;
Parameters
ParameterType
xnumber
ynumber
Returns

void

scrollTo()
Call Signature
scrollTo(options?): void;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollTo)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `options?` | `ScrollToOptions` |

###### Returns

`void`

###### Call Signature

```ts
scrollTo(x, y): void;
Parameters
ParameterType
xnumber
ynumber
Returns

void

setInterval()
setInterval(
handler,
timeout?, ...
arguments): number;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/setInterval)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `handler` | `TimerHandler` |
| `timeout?` | `number` |
| ...`arguments?` | `any`[] |

###### Returns

`number`

###### Inherited from

```ts
WindowOrWorkerGlobalScope.setInterval
setTimeout()
setTimeout(
handler,
timeout?, ...
arguments): number;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/setTimeout)

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `handler` | `TimerHandler` |
| `timeout?` | `number` |
| ...`arguments?` | `any`[] |

###### Returns

`number`

###### Inherited from

```ts
WindowOrWorkerGlobalScope.setTimeout
stop()
stop(): void;

Cancels the document load.

MDN Reference

Returns

void

structuredClone()
structuredClone<T>(value, options?): T;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/structuredClone)

###### Type Parameters

| Type Parameter | Default type |
| ------ | ------ |
| `T` | `any` |

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `value` | `T` |
| `options?` | [`StructuredSerializeOptions`](clone.md#structuredserializeoptions) |

###### Returns

`T`

###### Inherited from

```ts
WindowOrWorkerGlobalScope.structuredClone

Variables

Array

Array: ArrayConstructor;

path

path: string;

Window

Window: {
(): Window;
prototype: Window;
};

Type Declaration

Returns

Window

prototype
prototype: Window;
Was this page helpful?