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.

 

相关文章:

  • 2021-10-20
  • 2021-09-25
  • 2021-08-05
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-25
  • 2021-04-15
  • 2022-02-12
  • 2021-09-10
  • 2021-12-20
相关资源
相似解决方案