XMLHttpRequestEventTarget
interface XMLHttpRequestEventTarget extends EventTarget {
onabort: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onerror: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onload: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onloadend: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onloadstart: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onprogress: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
ontimeout: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(
type: K,
listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void;addEventListener(
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
): void;removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(
type: K,
listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void;removeEventListener(
}type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions,
): void;var XMLHttpRequestEventTarget: {
prototype: XMLHttpRequestEventTarget;
new (): XMLHttpRequestEventTarget;
};§Extends
§Properties
§
onabort: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null
[src]§
onerror: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null
[src]§
onload: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null
[src]§
onloadend: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null
[src]§
onloadstart: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null
[src]§
onprogress: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null
[src]§
ontimeout: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null
[src]§Methods
§
addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(
[src]type: K,
listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void§
addEventListener(
[src]type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
): void§
removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(
[src]type: K,
listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void§
removeEventListener(
[src]type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions,
): void