title: How To Determine Which Submit Button Was Pressed, Form onSubmit Event, Without jQuery
body: <p>I have a form with two submit buttons and some code:</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;input type="submit" name="save" value="Save" /&gt;
  &lt;input type="submit" name="saveAndAdd" value="Save and add another" /&gt;
  </code></pre>
  
  <p>JavaScript:</p>
  
  <pre><code>form.onSubmit = function(evnt) {
      // Do some asyncrhnous stuff, that will later on submit the form
      return false;
  }
  </code></pre>
  
  <p>Of course the two submit buttons accomplish different things. Is there a way to find out in <code>onSubmit</code> which button was pressed, so later I could submit by doing <code>thatButton.click()</code>?</p>
  
  <p>Ideally I would like to not modify the code for the buttons, just have a pure JavaScript addon that has this behavior.</p>
  
  <p>I know that Firefox has <code>evnt.explicitOriginalTarget</code>, but I can't find anything for other browsers.</p>