How do you load a separate .html page with Javascript : <p>I am trying to figure out how to send a user to another page I design after they have input the correct password. I don't know how to load the page with a JavaScript Command. How could i use the code below to open a new page titled insideVault.html? </p>

<p>I have tried many google searches, but cant find any resources to help me out with this.</p>

<pre><code>// login code //
   &lt;div class = "container"&gt;
        &lt;div class = "passwordEnter"&gt;
          &lt;div class = "text-center"&gt;
            &lt;form id="login" onsubmit="return passCheck()" method="get"&gt;
            &lt;p&gt; Enter Password &lt;/p&gt;
            &lt;input type="password" name="password" id = "password"&gt;
            &lt;input type="submit"&gt;
            &lt;/form&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;script src="script.js"&gt;&lt;/script&gt;
    &lt;/div&gt;
    &lt;script&gt;
      function passCheck(){

  var input = document.getElementById("password").value == 'test';  
  console.log(input);
  if(!input){
        alert('Password incorrect, please try again.');
        return false;
    }

    return true;
}
</code></pre>

<p>I want the code to load a new page, but so far I have not been able to find any code that would allow me to do this.</p>
