title: how to make a pass word that will redirect me to another page only when its correct. all while staying on the same tab
body: <p>I'm a beginner and I'm using HTML to embed aspects onto google sites. forgive me if my title wasn't specific or my question is idiotic.
  this is my code:</p>
  
  <pre><code>&lt;div class="wrapper"&gt;
  
  &lt;form class="form1" action= "sites.google.com" onsubmit="return (this.pass.value==='1291')?true:false;"&gt;
  
      &lt;div class="formtitle"&gt;Enter the password to proceed&lt;/div&gt;
  
      &lt;div class="input nobottomborder"&gt;
          &lt;div class="inputtext"&gt;Password: &lt;/div&gt;
          &lt;div class="inputcontent"&gt;
  
             &lt;input type="password" name="pass" /&gt;
              &lt;br/&gt;
  
          &lt;/div&gt;
      &lt;/div&gt;
  
      &lt;div class="buttons"&gt;
  
          &lt;input class="orangebutton" type="submit" value="Login" /&gt;
  
  
      &lt;/div&gt;
  </code></pre>
  
  <p>  </p>
  
  <p>the problem is it will redirect me to the other page on a new tab that it opens is there any way to keep it on the same tab?</p>
  
  <p>another problem is that it will show the password in the URL is there any way to prevent that?</p>
  
  <p>thanks for your help</p>