Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
Internet Explorer
Web Applications
Events
 ontimeout event
ontimeout event

[This documentation is preliminary and is subject to change.]

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

Internet Explorer 8

Syntax

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

Standards information

There are no standards that apply here.

Event information

SynchronousNo
BubblesNo
CancelableNo

Event handler parameters

This method has no parameters.

Remarks

The ontimeout event occurs if the timeout 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
XDomainRequest Constructor
XMLHttpRequest Constructor
XMLHttpRequest Enhancements in Internet Explorer 8

 

 

Build date: 2/14/2012

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker