title: HTML/JS Form being submitted twice
body: <p>I am using node.js/express to create a webpage.</p>
  
  <p>I currently have a form with some input and a submit button which is trigger by the click of another button currently on the page</p>
  
  <p>This is the code for my form:</p>
  
  <pre><code> &lt;form name= "form" id="form-id" action="http://localhost:1337/process_post" method="POST"&gt;
     &lt;input type="hidden" name="hiddentext" id="textarea"/&gt;
     &lt;input hidden type="submit" name="submitbutton" id="submit_button"/&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>This is my button (which triggers the submit for the form to be clicked during the onclick event)</p>
  
  <pre><code>  &lt;INPUT type="button" id="button-id" value="Save" onclick="this.disabled=true;load_page('form-id')" /&gt;
  </code></pre>
  
  <p>This is my JS script to click the submit button</p>
  
  <pre><code> function load_page(formId){
          document.getElementById("submit_button").click();
        }
  </code></pre>
  
  <p>The issue I have is that the form is being submitted twice. I am unsure why this happens and how to fix the issue. Any tips?</p>