title: Add parameters to url with onSubmit using a Javascript function
body: <p>I want to add html parameters to the url with onsubmit. I have 2 forms(1 GET, 1 POST), want to use 1 button to submit them both(Using the POST form button) When the submit button is pressed use onSubmit to call a javascript function, where parameters are "appended" to the url.</p>
  
  <p>I was thinking about doing something like this:</p>
  
  <pre><code>function onSubmitForm() {
      url = "localhost:8080/test/index.php?Title=document.getElementsByName('title')[0].value";
      //I don't know how to actually call the url.
  }
  </code></pre>
  
  <p><strong>EDIT</strong></p>
  
  <p>I got what I wanted:
  <a href="https://stackoverflow.com/questions/34128361/appending-form-input-value-to-action-url-as-path">Appending form input value to action url as path</a></p>