[Greasemonkey] Clicking a Button Programmatically
Andrew Hayward
greasemonkey at mooncalf.me.uk
Wed May 24 08:25:49 EDT 2006
> 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">
If you're just firing a submit event anyway, one might ask why you're
not just using a normal "submit" button...
But anyway, try "onClick", instead of "onclick". Just a guess. Might work.
- Andrew
More information about the Greasemonkey
mailing list