<script language="Javascript"> <!-- // please keep these lines on when you copy the source // made by: Nicolas - http://www.javascript-page.com var password = "please" var x = prompt("Enter in the password"," ") if (x.toLowerCase() == password) { alert("Come right in \n \n You've entered in the right password") location = "right.html" } else { location = "wrong.html" } //--> </script>