Talk:Generate Click Events

From GreaseSpot Wiki
Revision as of 07:37, 1 June 2010 by 62.153.172.49 (talk) (Created page with '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, t…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.