/DOM Events

timeout (Progress)

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

Bubbles No
Cancelable No
Target objects XMLHttpRequest
Interface ProgressEvent


var client = new XMLHttpRequest()
  client.open("GET", "http://www.example.org/example.txt")
  client.ontimeout = function(e) {


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


Specification Status Comment
XMLHttpRequest Living Standard

Browser compatibility

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

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

See also

© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.