sesaparcours
    Preparing search index...

    XMLHttpRequestEventTarget is the interface that describes the event handlers shared on XMLHttpRequest and XMLHttpRequestUpload.

    MDN Reference

    interface XMLHttpRequestEventTarget {
        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;
        dispatchEvent(event: Event): boolean;
        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;
    }

    Hierarchy (View Summary)

    Index

    Properties

    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

    Methods

    • The dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.

      MDN Reference

      Parameters

      Returns boolean