Try location.href
:
function passCheck(){
var input = document.getElementById("password").value == 'test';
console.log(input);
if(!input){
alert('Password incorrect, please try again.');
return false;
}
location.href="https://stackoverflow.com/questions/58496642/insideVault.html";
}