PokéRogue
    Preparing search index...

    Interface XMLHttpRequestEventTarget

    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. The normal event processing rules (including the capturing and optional bubbling phase) also apply to events dispatched manually with dispatchEvent().

      MDN Reference

      Parameters

      Returns boolean

    • The removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target. The event listener to be removed is identified using a combination of the event type, the event listener function itself, and various optional options that may affect the matching process; see Matching event listeners for removal.

      MDN Reference

      Type Parameters

      Parameters

      Returns void

    • The removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target. The event listener to be removed is identified using a combination of the event type, the event listener function itself, and various optional options that may affect the matching process; see Matching event listeners for removal.

      MDN Reference

      Parameters

      Returns void