XMLHttpRequestEventTarget

XMLHttpRequestEventTarget 介面描述了一個 XMLHttpRequest 物件實體當中,所有可註冊事件處理器的屬性。

EventTarget XMLHttpRequestEventTarget

屬性

XMLHttpRequestEventTarget.onabort (en-US)

Contains the function to call when a request is aborted and the abort (en-US) event is received by this object.

XMLHttpRequestEventTarget.onerror (en-US)

Contains the function to call when a request encounters an error and the error (en-US) event is received by this object.

XMLHttpRequestEventTarget.onload (en-US)

Contains the function to call when an HTTP request returns after successfully fetching content and the load (en-US) event is received by this object.

XMLHttpRequestEventTarget.onloadstart (en-US)

Contains the function that gets called when the HTTP request first begins loading data and the loadstart (en-US) event is received by this object.

XMLHttpRequestEventTarget.onprogress (en-US)

Contains the function that is called periodically with information about the progress of the request and the progress (en-US) event is received by this object.

XMLHttpRequestEventTarget.ontimeout

Contains the function that is called if the event times out and the timeout event is received by this object; this only happens if a timeout has been previously established by setting the value of the XMLHttpRequest object's timeout attribute.

XMLHttpRequestEventTarget.onloadend

Contains the function that is called when the load is completed, even if the request failed, and the loadend (en-US) event is received by this object.

規範

Specification
XMLHttpRequest Standard
# xmlhttprequesteventtarget

瀏覽器相容性

BCD tables only load in the browser

參見