event.initEvent - DOM Views : 508
Tagged in : DOM
0 0
Send mail
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);

By Rekha, On - 2009-12-09



    Login to add Comments .