title: Pass a hidden field value based on which button is clicked with JavaScript
body: <p>I have a form with two buttons, each with onclick = this.form.submit(). I have a hidden field in the form, and I would like the value of the field to be different based on which button is clicked. What would be the best way to do this?</p>
  
  <p>Also, before anyone says it the answers, jQuery is not an option in this case.</p>