MDN wants to learn about developers like you: https://qsurvey.mozilla.com/s3/MDN-dev-survey

XMLHttpRequestEventTarget

翻譯不完整。請協助 翻譯此英文文件

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

屬性

XMLHttpRequestEventTarget.onabort
Contains the function to call when a request is aborted and the abort event is received by this object.
XMLHttpRequestEventTarget.onerror
Contains the function to call when a request encounters an error and the error event is received by this object.
XMLHttpRequestEventTarget.onload
Contains the function to call when an HTTP request returns after successfully fetching content and the load event is received by this object.
XMLHttpRequestEventTarget.onloadstart
Contains the function that gets called when the HTTP request first begins loading data and the loadstart event is received by this object.
XMLHttpRequestEventTarget.onprogress
Contains the function that is called periodically with information about the progress of the request and the progress 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 event is received by this object.

規範

Specification Status Comment
XMLHttpRequest Living Standard WHATWG living standard

瀏覽器相容性

Feature Chrome Edge Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support 1 (Yes) 1.0 (1.7 or earlier) 7 (Yes) 1.2
Feature Android Chrome for Android Edge Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support ? 1.0 (Yes) (Yes) ? ? ?

 

參見

文件標籤與貢獻者

 此頁面的貢獻者: jackblackevo
 最近更新: jackblackevo,