{{ domref() }}
XMLHttpRequestEventTarget
is the interface that describes the event handlers you can implement in an object that will handle events for an {{ domxref("XMLHttpRequest") }}.
Attributes
- {{ domxref("XMLHttpRequestEventTarget.onabort", "onabort") }}
- The function to call when a request is aborted.
- {{ domxref("XMLHttpRequestEventTarget.onerror", "onerror") }}
- The function to call when a request encounters an error.
- {{ domxref("XMLHttpRequestEventTarget.onload", "onload") }}
- The function to call when an HTTP request returns after successfully loading content.
- {{ domxref("XMLHttpRequestEventTarget.onloadstart", "onloadstart") }}
- A function that gets called when the HTTP request first begins loading data.
- {{ domxref("XMLHttpRequestEventTarget.onprogress", "onprogress") }}
- A function that is called periodically with information about the progress of the request.
- {{ domxref("XMLHttpRequestEventTarget.ontimeout", "ontimeout") }}
- 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'stimeout
attribute. - {{ domxref("XMLHttpRequestEventTarget.onloadend", "onloadend") }}
- A function that is called when the load is completed, even if the request failed.
See also
- {{ domxref("XMLHttpRequest") }}
- Using XMLHttpRequest