[Greasemonkey] calling my script from a page

Jeremy Dunck jdunck at gmail.com
Tue Jun 20 09:29:49 EDT 2006


On 6/20/06, s g <junkvendoremail at yahoo.com> wrote:
>   link.href = "javascript:my_function()";
>

link.addEventListener('click', my_function, false);

my_function should take an argument e.
If you want to prevent the click from doing it's normal think, you'll
want to call
e.preventDefault();


More information about the Greasemonkey mailing list