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.

 

posted on 2009-03-12 09:24  Love2009  阅读(724)  评论(0编辑  收藏  举报

导航