Fires when an error occurs during object loading.
No return value.
The DISPID for this event is defined in mshtmdid.h. Use this value to identify the event handler when implementing IDispatch::Invoke.
Bubbles No Cancels Yes To invoke Cause one of the following errors to occur:
- Run-time script error, such as an invalid object reference or security violation.
- Error while downloading an object, such as an image.
- Internet Explorer 9. An error occurs while fetching media data.
Default action Displays the browser error message when a problem occurs and executes any error handling routine associated with the event.
The HTMLInputImageEvents::onerror event fires for run-time errors, but not for compilation errors. In addition, error dialog boxes raised by script debuggers are not suppressed by returning
true. To turn off script debuggers, disable script debugging in Internet Explorer by choosing Internet Options from the Tools menu. Click the Advanced tab and select the appropriate check box(es).