SVGDocumentEvents::onerror Event

New for Internet Explorer 9

[This documentation is preliminary and is subject to change.]

Occurs when an element does not load properly or a script runs incorrectly.

Syntax

void onerror(
    IDOMUIEvent *pEvt
);

Parameters

  • pEvt
    [in] A pointer to the IDOMUIEvent object that receives the event properties.

Return Value

No return value.

Event DISPID

DISPID_SVGDOCUMENTEVENTS_ONERROR

The DISPID for this event is defined in mshtml.idl. Use this value to identify the event handler when implementing IDispatch::Invoke.

Event Information

Bubbles Yes
Cancels No
To invoke A user or the system causes an error event.
Default action The browser displays its error message when a problem occurs and runs any error handling routines that are associated with the event.

Event Object Properties

The IHTMLEventObj interface contains additional information about the current event. When the onerror event is fired, you can use the IHTMLWindow2::event property to retrieve an IHTMLEventObj interface. To obtain an alternate interface pointer such as IHTMLEventObj2 or IHTMLEventObj3, call QueryInterface on the object.

Available Properties

IDOMEvent::bubbles New for Internet Explorer 9  Retrieves whether the event bubbles.
IDOMEvent::cancelable New for Internet Explorer 9  Retrieves whether the event's default action can be canceled.
IDOMEvent::currentTarget New for Internet Explorer 9  The event target currently being processed.
IDOMEvent::defaultPrevented New for Internet Explorer 9  Retrieves whether preventDefault was called.
IDOMEvent::eventPhase New for Internet Explorer 9  Retrieves the event phase that is being evaluated.
IDOMEvent::target New for Internet Explorer 9  Retrieves the element to which the event was originally dispatched.
IDOMEvent::timeStamp New for Internet Explorer 9  Retrieves the time in milliseconds when the event occurred.
IDOMEvent::type New for Internet Explorer 9  Retrieves the name of the event.
IDOMEvent::preventDefault New for Internet Explorer 9  Cancels the default action of the event.
IDOMEvent::stopPropagation New for Internet Explorer 9  Prevents propagation of the event beyond the current target.
IDOMEvent::stopImmediatePropagation New for Internet Explorer 9  Prevents any further propagation of the event.
IDOMEvent::trusted New for Internet Explorer 9  Indicates whether the event was created by a trusted event source.
IDOMEvent::cancelBubble New for Internet Explorer 9  Stops an event from propagating up from the current target.
IDOMEvent::srcElement New for Internet Explorer 9  Retrieves the element to which the event was originally dispatched.
IDOMUIEvent::view New for Internet Explorer 9  Retrieves the window object from which the event was generated.
IDOMUIEvent::detail New for Internet Explorer 9  Retrieves additional detail about the event.

Refer to the specific event object for additional event properties.

See Also

onerror