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
| Parameter | Type | Description |
|---|---|---|
...items | ConcatArray<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
| Parameter | Type | Description |
|---|---|---|
...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
| Parameter | Type | Description |
|---|---|---|
target | number | If target is negative, it is treated as length+target where length is the length of the array. |
start | number | If start is negative, it is treated as length+start. If end is negative, it is treated as length+end. |
end? | number | If 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
| Parameter | Type | Description |
|---|---|---|
predicate | (value, index, array) => value is S | A 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? | any | An 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
| Parameter | Type | Description |
|---|---|---|
predicate | (value, index, array) => unknown | A 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? | any | An 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
| Parameter | Type | Description |
|---|---|---|
value | T | value to fill array section with |
start? | number | index 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? | number | index 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
| Parameter | Type | Description |
|---|---|---|
predicate | (value, index, array) => value is S | A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array. |
thisArg? | any | An 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
| Parameter | Type | Description |
|---|---|---|
predicate | (value, index, array) => unknown | A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array. |
thisArg? | any | An 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
| Parameter | Type |
|---|---|
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
| Parameter | Type | Description |
|---|---|---|
predicate | (value, index, obj) => value is S | find 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? | any | If 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
| Parameter | Type |
|---|---|
predicate | (value, index, obj) => unknown |
thisArg? | any |
Returns
T
Call Signature
find<U>(predicate): U;
Type Parameters
| Type Parameter |
|---|
U |
Parameters
| Parameter | Type |
|---|---|
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
| Parameter | Type | Description |
|---|---|---|
predicate | (value, index, obj) => unknown | find 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? | any | If 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 Parameter | Default type |
|---|---|
A | - |
D extends number | 1 |
Parameters
| Parameter | Type | Description |
|---|---|---|
this | A | - |
depth? | D | The 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 Parameter | Default type |
|---|---|
U | - |
This | undefined |
Parameters
| Parameter | Type | Description |
|---|---|---|
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? | This | An 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
| Parameter | Type | Description |
|---|---|---|
callbackfn | (value, index, array) => void | A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array. |
thisArg? | any | An 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
| Parameter | Type | Description |
|---|---|---|
searchElement | T | The element to search for. |
fromIndex? | number | The 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
| Parameter | Type | Description |
|---|---|---|
searchElement | T | The value to locate in the array. |
fromIndex? | number | The 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
| Parameter | Type | Description |
|---|---|---|
separator? | string | A 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
| Parameter | Type | Description |
|---|---|---|
searchElement | T | The value to locate in the array. |
fromIndex? | number | The 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
| Parameter | Type | Description |
|---|---|---|
callbackfn | (value, index, array) => U | A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array. |
thisArg? | any | An 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
| Parameter | Type | Description |
|---|---|---|
...items | T[] | 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
| Parameter | Type | Description |
|---|---|---|
callbackfn | (previousValue, currentValue, currentIndex, array) => T | A 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
| Parameter | Type |
|---|---|
callbackfn | (previousValue, currentValue, currentIndex, array) => T |
initialValue | T |
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
| Parameter | Type | Description |
|---|---|---|
callbackfn | (previousValue, currentValue, currentIndex, array) => U | A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array. |
initialValue | U | If 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
| Parameter | Type | Description |
|---|---|---|
callbackfn | (previousValue, currentValue, currentIndex, array) => T | A 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
| Parameter | Type |
|---|---|
callbackfn | (previousValue, currentValue, currentIndex, array) => T |
initialValue | T |
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
| Parameter | Type | Description |
|---|---|---|
callbackfn | (previousValue, currentValue, currentIndex, array) => U | A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array. |
initialValue | U | If 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
| Parameter | Type | Description |
|---|---|---|
start? | number | The beginning index of the specified portion of the array. If start is undefined, then the slice begins at index 0. |
end? | number | The 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
| Parameter | Type | Description |
|---|---|---|
predicate | (value, index, array) => unknown | A 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? | any | An 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
| Parameter | Type | Description |
|---|---|---|
compareFn? | (a, b) => number | Function 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
| Parameter | Type | Description |
|---|---|---|
start | number | The zero-based location in the array from which to start removing elements. |
deleteCount? | number | The 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
| Parameter | Type | Description |
|---|---|---|
start | number | The zero-based location in the array from which to start removing elements. |
deleteCount | number | The number of elements to remove. |
...items | T[] | 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
| Parameter | Type |
|---|---|
locales | string | 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
| Parameter | Type | Description |
|---|---|---|
...items | T[] | 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.
Extends
EventTarget.AnimationFrameProvider.GlobalEventHandlers.WindowEventHandlers.WindowLocalStorage.WindowOrWorkerGlobalScope.WindowSessionStorage
Indexable
[index: number]: Window
Properties
caches
readonly caches: CacheStorage;
Available only in secure contexts.
Inherited from
WindowOrWorkerGlobalScope.caches;
clientInformation
readonly clientInformation: Navigator;
Deprecated
This is a legacy alias of navigator.
closed
readonly closed: boolean;
Returns true if the window has been closed, false otherwise.
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.
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
external
readonly external: External;
Deprecated
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.
Math
Math: Math;
menubar
readonly menubar: BarProp;
Returns true if the menu bar is visible; otherwise, returns false.
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
| Parameter | Type | Description |
|---|---|---|
this | GlobalEventHandlers | - |
ev | UIEvent | The 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
| Parameter | Type | Description |
|---|---|---|
this | GlobalEventHandlers | - |
ev | FocusEvent | The 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
| Parameter | Type | Description |
|---|---|---|
this | GlobalEventHandlers | - |
ev | Event | The 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
| Parameter | Type | Description |
|---|---|---|
this | GlobalEventHandlers | - |
ev | Event | The 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
| Parameter | Type | Description |
|---|---|---|
this | GlobalEventHandlers | - |
ev | MouseEvent | The 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
| Parameter | Type | Description |
|---|---|---|
this | GlobalEventHandlers | - |
ev | MouseEvent | The 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
| Parameter | Type | Description |
|---|---|---|
this | GlobalEventHandlers | - |
ev | MouseEvent | The mouse event. MDN Reference |
Returns
any
Inherited from
GlobalEventHandlers.ondblclick;
ondevicemotion
ondevicemotion: (this, ev) => any;
Available only in secure contexts.
Parameters
| Parameter | Type |
|---|---|
this | Window |
ev | DeviceMotionEvent |
Returns
any
ondeviceorientation
ondeviceorientation: (this, ev) => any;
Available only in secure contexts.
Parameters
| Parameter | Type |
|---|---|
this | Window |
ev | DeviceOrientationEvent |
Returns
any
ondeviceorientationabsolute
ondeviceorientationabsolute: (this, ev) => any;
Available only in secure contexts.
Parameters
| Parameter | Type |
|---|---|
this | Window |
ev | DeviceOrientationEvent |
Returns
any
ondrag
ondrag: (this, ev) => any;
Fires on the source object continuously during a drag operation.
Parameters
| Parameter | Type | Description |
|---|---|---|
this | GlobalEventHandlers | - |
ev | DragEvent | The 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
| Parameter | Type | Description |
|---|---|---|
this | GlobalEventHandlers | - |
ev | DragEvent | The 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
| Parameter | Type | Description |
|---|---|---|
this | GlobalEventHandlers | - |
ev | DragEvent | The 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
| Parameter | Type | Description |
|---|---|---|
this | GlobalEventHandlers | - |
ev | DragEvent | The 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
| Parameter | Type | Description |
|---|---|---|
this | GlobalEventHandlers | - |
ev | DragEvent | The 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
| Parameter | Type | Description |
|---|---|---|
this | GlobalEventHandlers | - |
ev | DragEvent | The 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
| Parameter | Type | Description |
|---|---|---|
this | GlobalEventHandlers | - |
ev | Event | The 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
| Parameter | Type | Description |
|---|---|---|
this | GlobalEventHandlers | - |
ev | Event | The event. MDN Reference |
Returns
any
Inherited from
GlobalEventHandlers.onemptied;
onended
onended: (this, ev) => any;
Occurs when the end of playback is reached.
Parameters
| Parameter | Type | Description |
|---|---|---|
this | GlobalEventHandlers | - |
ev | Event | The event MDN Reference |
Returns
any
Inherited from
GlobalEventHandlers.onended;
onerror
onerror: OnErrorEventHandlerNonNull;
Fires when an error occurs during object loading.
Param
The event.
Inherited from
GlobalEventHandlers.onerror;
onfocus
onfocus: (this, ev) => any;
Fires when the object receives focus.
Parameters
| Parameter | Type | Description |
|---|---|---|
this | GlobalEventHandlers | - |
ev | FocusEvent | The 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
| Parameter | Type | Description |
|---|---|---|
this | GlobalEventHandlers | - |
ev | KeyboardEvent | The keyboard event MDN Reference |
Returns
any
Inherited from
GlobalEventHandlers.onkeydown;
onkeypress
onkeypress: (this, ev) => any;
Fires when the user presses an alphanumeric key.
Parameters
| Parameter | Type | Description |
|---|---|---|
this | GlobalEventHandlers | - |
ev | KeyboardEvent | The event. |
Returns
any
Deprecated
Inherited from
GlobalEventHandlers.onkeypress;
onkeyup
onkeyup: (this, ev) => any;
Fires when the user releases a key.
Parameters
| Parameter | Type | Description |
|---|---|---|
this | GlobalEventHandlers | - |
ev | KeyboardEvent | The 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
| Parameter | Type | Description |
|---|---|---|
this | GlobalEventHandlers | - |
ev | Event | The 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
| Parameter | Type | Description |
|---|---|---|
this | GlobalEventHandlers | - |
ev | Event | The 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
| Parameter | Type | Description |
|---|---|---|
this | GlobalEventHandlers | - |
ev | Event | The event. MDN Reference |
Returns
any
Inherited from
GlobalEventHandlers.onloadedmetadata;
onloadstart
onloadstart: (this, ev) => any;
Occurs when Internet Explorer begins looking for media data.
Parameters
| Parameter | Type | Description |
|---|---|---|
this | GlobalEventHandlers | - |
ev | Event | The 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
| Parameter | Type | Description |
|---|---|---|
this | GlobalEventHandlers | - |
ev | MouseEvent | The 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
| Parameter | Type | Description |
|---|---|---|
this | GlobalEventHandlers | - |
ev | MouseEvent | The 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
| Parameter | Type | Description |
|---|---|---|
this | GlobalEventHandlers | - |
ev | MouseEvent | The 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
| Parameter | Type | Description |
|---|---|---|
this | GlobalEventHandlers | - |
ev | MouseEvent | The 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
| Parameter | Type | Description |
|---|---|---|
this | GlobalEventHandlers | - |
ev | MouseEvent | The 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
| Parameter | Type |
|---|---|
this | Window |
ev | Event |
Returns
any
Deprecated
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
| Parameter | Type | Description |
|---|---|---|
this | GlobalEventHandlers | - |
ev | Event | The event. MDN Reference |
Returns
any
Inherited from
GlobalEventHandlers.onpause;
onplay
onplay: (this, ev) => any;
Occurs when the play method is requested.
Parameters
| Parameter | Type | Description |
|---|---|---|
this | GlobalEventHandlers | - |
ev | Event | The event. MDN Reference |
Returns
any
Inherited from
GlobalEventHandlers.onplay;
onplaying
onplaying: (this, ev) => any;
Occurs when the audio or video has started playing.
Parameters
| Parameter | Type | Description |
|---|---|---|
this | GlobalEventHandlers | - |
ev | Event | The 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
| Parameter | Type | Description |
|---|---|---|
this | GlobalEventHandlers | - |
ev | ProgressEvent | The event. MDN Reference |
Returns
any
Inherited from
GlobalEventHandlers.onprogress;
onratechange
onratechange: (this, ev) => any;
Occurs when the playback rate is increased or decreased.
Parameters
| Parameter | Type | Description |
|---|---|---|
this | GlobalEventHandlers | - |
ev | Event | The 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
| Parameter | Type | Description |
|---|---|---|
this | GlobalEventHandlers | - |
ev | Event | The 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
| Parameter | Type | Description |
|---|---|---|
this | GlobalEventHandlers | - |
ev | Event | The 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
| Parameter | Type | Description |
|---|---|---|
this | GlobalEventHandlers | - |
ev | Event | The event. MDN Reference |
Returns
any
Inherited from
GlobalEventHandlers.onseeked;
onseeking
onseeking: (this, ev) => any;
Occurs when the current playback position is moved.
Parameters
| Parameter | Type | Description |
|---|---|---|
this | GlobalEventHandlers | - |
ev | Event | The event. MDN Reference |
Returns
any
Inherited from
GlobalEventHandlers.onseeking;
onselect
onselect: (this, ev) => any;
Fires when the current selection changes.
Parameters
| Parameter | Type | Description |
|---|---|---|
this | GlobalEventHandlers | - |
ev | Event | The 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
| Parameter | Type | Description |
|---|---|---|
this | GlobalEventHandlers | - |
ev | Event | The 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
| Parameter | Type | Description |
|---|---|---|
this | GlobalEventHandlers | - |
ev | Event | The event. MDN Reference |
Returns
any
Inherited from
GlobalEventHandlers.onsuspend;
ontimeupdate
ontimeupdate: (this, ev) => any;
Occurs to indicate the current playback position.
Parameters
| Parameter | Type | Description |
|---|---|---|
this | GlobalEventHandlers | - |
ev | Event | The 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
| Parameter | Type |
|---|---|
this | WindowEventHandlers |
ev | Event |
Returns
any
Deprecated
Inherited from
WindowEventHandlers.onunload;
onvolumechange
onvolumechange: (this, ev) => any;
Occurs when the volume is changed, or playback is muted or unmuted.
Parameters
| Parameter | Type | Description |
|---|---|---|
this | GlobalEventHandlers | - |
ev | Event | The 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
| Parameter | Type | Description |
|---|---|---|
this | GlobalEventHandlers | - |
ev | Event | The event. MDN Reference |
Returns
any
Inherited from
GlobalEventHandlers.onwaiting;
onwebkitanimationend
onwebkitanimationend: (this, ev) => any;
Parameters
| Parameter | Type |
|---|---|
this | GlobalEventHandlers |
ev | Event |
Returns
any
Deprecated
This is a legacy alias of onanimationend.
Inherited from
GlobalEventHandlers.onwebkitanimationend;
onwebkitanimationiteration
onwebkitanimationiteration: (this, ev) => any;
Parameters
| Parameter | Type |
|---|---|
this | GlobalEventHandlers |
ev | Event |
Returns
any
Deprecated
This is a legacy alias of onanimationiteration.
Inherited from
GlobalEventHandlers.onwebkitanimationiteration;
onwebkitanimationstart
onwebkitanimationstart: (this, ev) => any;
Parameters
| Parameter | Type |
|---|---|
this | GlobalEventHandlers |
ev | Event |
Returns
any
Deprecated
This is a legacy alias of onanimationstart.
Inherited from
GlobalEventHandlers.onwebkitanimationstart;
onwebkittransitionend
onwebkittransitionend: (this, ev) => any;
Parameters
| Parameter | Type |
|---|---|
this | GlobalEventHandlers |
ev | Event |
Returns
any
Deprecated
This is a legacy alias of ontransitionend.
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
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.
pageYOffset
readonly pageYOffset: number;
Deprecated
This is a legacy alias of scrollY.
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.
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.
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.
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
statusbar
readonly statusbar: BarProp;
Returns true if the status bar is visible; otherwise, returns false.
toolbar
readonly toolbar: BarProp;
Returns true if the toolbar is visible; otherwise, returns false.
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
| Parameter | Type |
|---|---|
href | string | 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.
Type Parameters
| Type Parameter |
|---|
K extends keyof WindowEventMap |
Parameters
| Parameter | Type |
|---|---|
type | K |
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.
Parameters
| Parameter | Type |
|---|---|
type | string |
listener | EventListenerOrEventListenerObject |
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
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
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.
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
| Parameter | Type |
|---|---|
image | ImageBitmapSource |
sx | number |
sy | number |
sw | number |
sh | number |
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.
Parameters
| Parameter | Type |
|---|---|
event | Event |
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.
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.
Parameters
| Parameter | Type |
|---|---|
message | any |
targetOrigin | string |
transfer? | Transferable[] |
Returns
void
Call Signature
postMessage(message, options?): void;
Parameters
| Parameter | Type |
|---|---|
message | any |
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
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.
Type Parameters
| Type Parameter |
|---|
K extends keyof WindowEventMap |
Parameters
| Parameter | Type |
|---|---|
type | K |
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.
Parameters
| Parameter | Type |
|---|---|
type | string |
listener | EventListenerOrEventListenerObject |
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
| Parameter | Type |
|---|---|
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
| Parameter | Type |
|---|---|
x | number |
y | number |
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
| Parameter | Type |
|---|---|
x | number |
y | number |
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
| Parameter | Type |
|---|---|
x | number |
y | number |
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.
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
prototype
prototype: Window;