event.initEvent

by Rekha 2009-12-09 11:56:13

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);

Tagged in:

1237
like
0
dislike
0
mail
flag

You must LOGIN to add comments