Javascript Reference
Categories: event

javascript event initEvent( )

@April 4, 2009, 2:39 a.m.
initEvent( ) Firefox/Netscape/NN 6 IE n/a Chrome/Safari/DOM 2

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.
 
Returned Value

None.


Powered by Linode.