[webkit-dev] click event on a tag without jscript

Geoffrey Garen ggaren at apple.com
Tue May 27 10:49:14 PDT 2008


> I managed to get the Element form the Document object. The problem now
> is I can't send a click() event on that element like in JavaScript:
>
> document.getElementById(myid).click()
>
> Any ideas?

You need to look into the DOM createEvent and dispatchEvent APIs.

http://www.w3.org/TR/DOM-Level-2-Events/events.html

Geoff


More information about the webkit-dev mailing list