title: Submitting form on click of back button of browser
body: <p>i have a jsp page which contains 2 forms as follows:</p>
  
  <pre><code>&lt;form action=cancelRide.html id="cancel" method="get"&gt;
      &lt;button type="submit" name="cancel"&gt;Cancel&lt;/button&gt;
  &lt;/form&gt;
  &lt;form action=confirmRide.html method="post"&gt;
      &lt;button type="submit" name="book"&gt;Book&lt;/button&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>And on the click of cancel button it goes to cancelRide controller.I need the same thing to happen when the back button of the browser clicked .That is when the back button is clicked I need the cancelRide form to be submitted.</p>