Sends an event to the current element.
var defaultPrevented = eventTarget.dispatchEvent(event);
The event object to dispatch.
Returns an object of type BooleanBoolean
Whether any of the event handlers called preventDefault.
Default. The default action is permitted.
The caller should prevent the default action.
Events that the 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.
- DOM Level 2 Events
Microsoft Developer Network: [Windows Internet Explorer API reference Article]