166
rated 0 times
[
171]
[
5]
/ answers: 1 / hits: 18311
/ 13 Years ago, fri, march 18, 2011, 12:00:00
I'm trying to write a greasemonkey script that updates inventory for a collection of items through the browser. To do this I need to autofill a few forms and simulate a mouseclick on the submission button. I have the forms filling out fine, but I'm stuck on the button submission.
Here is the HTML for the button I am trying to simulate clicking
<input type=submit value=Find style= name=process-form onclick=imhocaller.value='find-resources-page.left'; imhoaction.value='process-form';>
I tried doing something like this, but haven't had any luck.
document.getElementsByName('process-form').submit();
I can post more code if needed. Thank you!
More From » html