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
Bubbles | No |
---|
Cancels | No |
---|
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
See Also
onload, onprogress