This page is Almost Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

timeout

Summary

The ontimeout event occurs if the ontimeout period elapses before the onload event occurs.

Overview Table

Synchronous No
Bubbles No
Target dom/Element
Cancelable No
Default action
## Examples

Setting the ontimeout property.

<script type="text/javascript">
function timeo()
{
    alert("XDR ontimeout");
}
...
xdr.ontimeout = timeo;

Notes

Remarks

The ontimeout event occurs if the ontimeout period elapses before the onload event occurs. When the ontimeout event occurs, the responseText property is unavailable and attempts to access it will raise an error. To invoke this event, do one of the following:

  • Event handlers are called as needed after a request is sent.

Event handler parameters

This method has no parameters.

See also

Related pages

  • XDomainRequest
  • XMLHttpRequest
  • XMLHttpRequest Enhancements in Internet Explorer 8

Attributions