The initEvent method is used to initialize the value of an event created using document.createEvent.
Syntax
event.initEvent(type, bubbles, cancelable);
Example
Syntax
event.initEvent(type, bubbles, cancelable);
Example
// create a click event that bubbles up and
// cannot be canceled
event.initEvent("click", true, false);
// cannot be canceled
event.initEvent("click", true, false);
No comments:
Post a Comment