var pass = prompt("Enter the Password:", "");

if (pass == null)
  window.location = "bad.html";
else if (pass.toLowerCase() == "password")
  window.location = "ok.html";
else
  window.location = "bad.html";
