title: Trying to simulate the clicking of a button with greasemonkey
body: <p>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.</p>
  
  <p>Here is the HTML for the button I am trying to simulate clicking</p>
  
  <pre><code>&lt;input type="submit" value="Find" style="" name="process-form" onclick="imhocaller.value='find-resources-page.left'; imhoaction.value='process-form';"&gt;
  </code></pre>
  
  <p>I tried doing something like this, but haven't had any luck.</p>
  
  <pre><code>document.getElementsByName('process-form').submit();
  </code></pre>
  
  <p>I can post more code if needed. Thank you!</p>