Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ontimeout event

Raised when there is an error that prevents the completion of the request.

Internet Explorer 8

 

Syntax

HTML Attribute <element ontimeout = "handler(event)">
attachEvent Method object.attachEvent("ontimeout", handler)

 

Event information

SynchronousNo
BubblesNo
CancelableNo

 

Event handler parameters

This method has no parameters.

Standards information

There are no standards that apply here.

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.

Examples

Setting the ontimeout property.


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

See also

XDomainRequest
XMLHttpRequest
XMLHttpRequest Enhancements in Internet Explorer 8

 

 

Show:
© 2015 Microsoft