title: Passing Url Through the Button
body: <p>I am using a simple html button to submit the data.I am using codeigniter framework.The following code is my button for cacel the page and go back to the previous page.</p>
  
  <pre><code>&lt;input type="button" value="Cancel" onclick="" class="cancel_button"&gt;
  </code></pre>
  
  <p>When I click the cancel button it should go to the following url</p>
  
  <pre><code>http://localhost/sample/categorycontroller/index
  </code></pre>
  
  <p>Please let me know,how to pass the url through the button.?</p>
  
  <p>Thanks in advance</p>