title: onClick and action html
body: <p>I am using purecss as a base for a simple project. What I am currently having trouble with is I have a submit button where I will pull some info from the fields, and when clicked I want to run some javascript, as well as take the user to another page. This is what I am trying with no luck:</p>
  
  <pre><code>    &lt;div class="pure-controls"&gt;
          &lt;button type="submit" class="pure-button pure-button-primary" onClick="saveInfo(this.form)" action="confirm.html"&gt;Submit&lt;/button&gt;           
          &lt;button type="submit" class="pure-button pure-button-primary"&gt;Search&lt;/button&gt;
      &lt;/div&gt;
  </code></pre>