title: "clicking" submit button with no ID using javascript
body: <p>Here is the submit button i would like to 'click' using javascript.</p>
  
  <pre><code>&lt;input type="submit" name="REG_BTN" value="Submit Changes"&gt;
  </code></pre>
  
  <p>I am trying to use something along the lines of...</p>
  
  <pre><code>document.getElementsByTagName('submit')[0].click();
  </code></pre>
  
  <p>to 'click' the button, but it does not work. I am writing a script to run in browsers so i do not have the ability to change any of the aspects of the submit button. I am new to javascript so it may just be something simple that i am not picking up. Is there another way to achieve this?</p>