title: Method to open another jsp page in Javascript
body: <p>I am trying to use buttons in an html/javascript program to redirect someone to another one of my pages. Basically, I created a .jsp page that gives the user some buttons to click. If the user clicks a button, it calls a method that is supposed to open a new .jsp page that I created under the same project. However, I have no clue how to do this as I am brand new to Javascript and HTML. I provided an example below:</p>
  
  <p><strong>Sample Page</strong></p>
  
  <pre><code>&lt;html&gt;
  &lt;title&gt;Web Page&lt;/title&gt;
  &lt;body&gt;
  
      &lt;p&gt;Please click a button to redirect you to the page you wish to go to.&lt;/p&gt;
  
      &lt;br&gt;
  
      &lt;form&gt;
          &lt;input type="button" id="idname" value = "General Info " onclick="goToInfo()"/&gt;&lt;br&gt;
      &lt;/form&gt;
  
      &lt;br&gt;
  
      &lt;form&gt;
          &lt;input type="button" id="idname" value = "Other Information" onclick="goToOther()"/&gt;&lt;br&gt;
      &lt;/form&gt;
  
  
  
      &lt;script type="text/javascript"&gt;
          function goToInfo(){
  
          }
  
          function goToOther(){
  
          }
  
          &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>*For example, I have another page in my NetBeans project that is called "GeneralInfo.jsp" and I want <code>goToInfo()</code> to be able to redirect the person to that page. Thank you for your help.</p>