Talk:Generate Click Events
From GreaseSpot Wiki
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)