Sends an event to the current element.
HRESULT retVal = object.dispatchEvent(evt, pfResult);
- evt [in]
The event object to dispatch.
- pfResult [out, retval]
A VARIANT_BOOL value that indicates whether any of the event handlers called IDOMEvent::preventDefault.
This method can return one of these values.
The operation completed successfully.
You cannot dispatch an internal event.
Events that the IEventTarget::dispatchEvent method dispatches are subject to the same capturing and bubbling behavior as events that the browser dispatches.
You cannot cancel some events. For more information, see the documentation for the event.