Talk:Generate Click Events

From GreaseSpot Wiki
Revision as of 16:30, 1 June 2010 by Arantius (talk | contribs)
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.

Good catch. Fixed. Arantius 16:30, 1 June 2010 (UTC)