[Greasemonkey] click
Rod McGuire
mcguire at telerama.com
Fri Sep 22 03:44:21 EDT 2006
Quoting sscept <sscept at yahoo.com>:
> can you tell me please how to make a script that will
> click specific buttons and links when specific
> webpages are loaded?
1) get the node that you want to click.
If it is in a form read and understand http://www.oreillynet.com/lpt/a/6257,
especially pitfall#3.
And/or if it has an id do something like:
var theButton = document.getElementById("button33")
2) click it. Eg execute
theButton.click()
This should work for most pages that haven't explicitly set up event listeners.
More information about the Greasemonkey
mailing list