title: Moving to another frame in the same page using Javascript
body: <p>I'm really a beginner in javaScript and HTML .. I have created a web page with two buttons, depending on which button is pressed I want to open a different form. How can I do it ? </p>
  
  <p>When the user presses the first button which is "S&amp;P Database" the browser should transfer him to another form that contains a list of choices. But when he presses the Generate report button another different choices should appear to him .. But here I don't want to open a new window I need it in the same window but using different page inside the browser .. </p>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;
  &lt;h1&gt; My System &lt;/h1&gt;
  
  
  &lt;form action=""&gt;
  &lt;input type="button" value="S &amp; P Database "&gt;
  &lt;input type="button" value="Generate Report  "&gt;
  
  
  
  &lt;/form&gt;
  
  
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>