Okay, I'm trying to make a login/password type thing. Its simple and isnt going to be used for anything but I want to make it so after you put in the correct password it takes you to a different page. So far I have it so if you put the right password in it says correct and if you put the wrong password in it says incorrect.
Here's the code:
[code]<HTML>
<SCRIPT LANGUAGE="JAVASCRIPT">
var pass='jack'
</SCRIPT>
<SCRIPT LANGUAGE="JAVASCRIPT">
function login() {
pwd_input=prompt('Please enter your password and click OK')