[Greasemonkey] Calling a GreaseMonkey function from an "Onclick" event

David Roth uzziel at gmail.com
Mon Jul 25 16:05:14 EDT 2005

I think your myFunction() isn't defined by the time you click on the href.

See:  http://diveintogreasemonkey.org/helloworld/code.html

You probably need to insert myFunction() as a literal <script> in your
document for it to still be available post-greasing.  (Or whatever the
verb is for Greasemonkey processing a page.)


Honi soit qui mal y pense.

More information about the Greasemonkey mailing list