Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

timeout

我們的志工尚未將此文章翻譯為 正體中文 (繁體) 版本。加入我們,幫忙翻譯!

The timeout event is fired when Progression is terminated due to preset time expiring.

Bubbles No
Cancelable No
Target objects XMLHttpRequest
Interface ProgressEvent

Examples

var client = new XMLHttpRequest()
  client.open("GET", "https://www.example.org/example.txt")
  client.ontimeout = function(e) {
    console.error("Timeout!!")
  }
  client.send()

Inheritance

The timeout event implements the ProgressEvent interface, which inherits from Event — it has available the properties and methods defined on this interface.

Specifications

Specification Status Comment
XMLHttpRequest Living Standard  

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support 1.0 3.5 (1.9.1) 10.0 (Yes) (Yes)
Feature Android Android Webview Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile Chrome for Android
Basic support (Yes) (Yes) 1.0 (1.9.1) 10.0 (Yes) (Yes) (Yes)

See also

文件標籤與貢獻者

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