SVGError | onerror event
Occurs when an element does not load properly or a script runs incorrectly.
![]() ![]() |
Syntax
| HTML Attribute | <element onerror = "handler(event)"> |
|---|---|
| Event Property | object.onerror = handler; |
| attachEvent Method | object.attachEvent("onerror", handler) |
| addEventListener Method | object.addEventListener("SVGError", handler, useCapture) |
Event information
| Synchronous | No |
|---|---|
| Bubbles | Yes |
| Cancelable | No |
Event handler parameters
- pEvt [in]
-
Type: IDOMUIEvent
The IDOMEvent object.
Standards information
- Scalable Vector Graphics: Scripting, Section 18.4.3
Remarks
The browser displays its error message when a problem occurs and runs any error handling routines that are associated with the event.
To invoke this event, do one of the following:
- A user or the system causes an error event.
See also
Show:

