Search This Blog

Pages

Wednesday, February 16, 2011

event.initEvent

The initEvent method is used to initialize the value of an event created using document.createEvent.

Syntax

event.initEvent(type, bubbles, cancelable);


Example
// create a click event that bubbles up and
// cannot be canceled
event.initEvent("click", true, false);

No comments:

Post a Comment