title: HTML button onclick event
body: <p><img src="https://i.stack.imgur.com/rIhNw.jpg" alt="3 buttons 3 onclick events"></p>
  
  <p>This might be a very basic question; believe me I found very hard to find the answer to this question on the internet. I have 3 HTML pages stored in my server (Tomcat locally) &amp; i want to open these HTML pages on a button click. Any help would be highly appreciated. </p>
  
  <p>Here is my code,</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
    &lt;head&gt;
        &lt;meta charset="ISO-8859-1"&gt;
        &lt;title&gt;Online Student Portal&lt;/title&gt;
    &lt;/head&gt;
  &lt;body&gt;
    &lt;form action=""&gt;
        &lt;h2&gt;Select Your Choice..&lt;/h2&gt;
        &lt;input type="button" value="Add Students"&gt;
        &lt;input type="button" value="Add Courses"&gt;
        &lt;input type="button" value="Student Payments"&gt;
    &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>