javascript event initEvent( )
initEvent("eventType", bubblesFlag, cancelableFlag)
Indicates the minimum initialization required on an event object that is generated by document.createEvent( ). After a script-generated event is initialized, it may be used as a parameter to a node's dispatchEvent( ) method.
Parameters
- String identifier for the event's type, such as click, mousedown, keypress, DOMAttrModified, and so on.
- Boolean value (true | false) determining whether the event's default propagation behavior is to bubble.
- Boolean value (true | false) determining whether the event's default action may be prevented via the
- preventDefault( ) method.