www.fgks.org   »   [go: up one dir, main page]

Click to Rate and Give Feedback
 onerror Event
onerror Event
New for Windows Internet Explorer 8
Note: This documentation is preliminary and is subject to change.

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

Syntax

Named script <SCRIPT FOR = XDomainRequest 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. 

Applies To

XDomainRequest

See Also

onload, onprogress
Tags What's this?: Add a tag
Community Content
 
Add Community Content
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker
DCSIMG