[Greasemonkey] Re: dispatchEvent creates an error

Nikolas Coukouma lists at atrus.org
Tue Aug 23 17:35:09 EDT 2005

Mark Pilgrim wrote:

>On 8/23/05, Andre <gm at andrecgn.de> wrote:
>>right, but the link in my original mail points to an example:
>>        b = document.getElementById("button1");
>>        res = b.dispatchEvent("click");
>Wow, by an amazing coincidence, I was researching this exact question
>last night.  Here is the most helpful link I found:
>Basically, the Mozilla documentation is simply wrong.  Like wildly wrong.
I've updated the wiki version with a correct example and added a quick
page on createEvent:

The XUL Planet docs are correct, if terse, because they were generated
from the source a while ago:


More information about the Greasemonkey mailing list