[Greasemonkey] Clicking a Button Programmatically

Charles Iliya Krempeaux supercanadian at gmail.com
Tue May 23 23:00:06 EDT 2006


Hello,

On 5/23/06, A. Alfred Ayache <alfred at lastbyte.ca> wrote:
>
> I've read section 4.22 of the Dive Into Greasemonkey book.  But I'm
> looking at a
> form with a regular button, rather than a submit.  So how do I fire an
> onClick
> event?
>
> If it helps, here's the HTML:
>
> <input value="Refresh" onclick="airtimeDetailForm.submit()" type="button">
>

Using "onclick" should work.


Perhaps you have a syntax error or something.  Try looking at the JavaScript
console to see if some error shows.


See ya

-- 
    Charles Iliya Krempeaux, B.Sc.

    charles @ reptile.ca
    supercanadian @ gmail.com

    developer weblog: http://ChangeLog.ca/
___________________________________________________________________________
 Make Television                                http://maketelevision.com/


More information about the Greasemonkey mailing list