onerror Event
New for Windows Internet Explorer 8

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

Syntax

Named script <SCRIPT FOR = object EVENT = onerror> Internet Explorer only

Event Information

BubblesNo
CancelsNo
To invoke Cannot invoke. The onerror event occurs when the request could not be completed because of an error.
Default action N/A

Remarks

The page can respond to the error, but there is no way to determine the cause or nature of the error.

The onerror event does not occur when the ontimeout event occurs.

Example

Setting the onerror property.

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

Applies To

XDomainRequest, XDomainRequest Constructor

See Also

Tags :


Page view tracker