The EventTarget.addEventListener() method registers the specified listener on the EventTarget it's called on.
The EventTarget.addEventListener() method registers the specified listener on the EventTarget it's called on. The event target may be an Element in a document, the Document itself, a Window, or any other object that supports events (such as XMLHttpRequest).
MDN
Dispatches an Event at the specified EventTarget, invoking the affected EventListeners in the appropriate order.
Dispatches an Event at the specified EventTarget, invoking the affected EventListeners in the appropriate order. The normal event processing rules (including the capturing and optional bubbling phase) apply to events dispatched manually with dispatchEvent().
MDN
The function to call when a request is aborted.
The function to call when a request is aborted.
MDN
The function to call when a request encounters an error.
The function to call when a request encounters an error.
MDN
The function to call when an HTTP request returns after successfully loading content.
The function to call when an HTTP request returns after successfully loading content.
MDN
A function that is called when the load is completed, even if the request failed.
A function that is called when the load is completed, even if the request failed.
MDN
A function that gets called when the HTTP request first begins loading data.
A function that gets called when the HTTP request first begins loading data.
MDN
A function that is called periodically with information about the progress of the request.
A function that is called periodically with information about the progress of the request.
MDN
A function that is called if the event times out; this only happens if a timeout has been previously established by setting the value of the XMLHttpRequest object's timeout attribute.
A function that is called if the event times out; this only happens if a timeout has been previously established by setting the value of the XMLHttpRequest object's timeout attribute.
MDN
Removes the event listener previously registered with EventTarget.addEventListener.
Removes the event listener previously registered with EventTarget.addEventListener.
MDN
XMLHttpRequestEventTarget is the interface that describes the event handlers you can implement in an object that will handle events for an XMLHttpRequest.
MDN