Talk:Generate Click Events

From GreaseSpot Wiki
Revision as of 07:39, 1 June 2010 by 62.153.172.49 (talk)
Jump to navigationJump to search

at the end:

> Assume that the el variable points to some element which we want to "click on":

> var evt = document.createEvent("HTMLEvents");

> evt.initEvent("click", true, true);

> link.dispatchEvent(evt);


there is no "el variable", is "link" the right reference???

I don't want to change anything unless I'm sure that I'm right.