I know this... <script>
function checkpass()
{
if(document.getElementById('pass').value == "mypass") location.href = "protectedpage.html"; //This sends the user to the new page
else alert("Password is incorrect");
}
</script>
<input type="password" id="pass" /> <input type="button" value="Enter" onclick="checkpass()" />
But I just can't figure out how to do multiple passwords .... PLEASE PLEASE PLEASE help me... FYI I dont want any links... just type the answer, please.
function checkpass()
{
if(document.getElementById('pass').value == "mypass") location.href = "protectedpage.html"; //This sends the user to the new page
else alert("Password is incorrect");
}
</script>
<input type="password" id="pass" /> <input type="button" value="Enter" onclick="checkpass()" />
But I just can't figure out how to do multiple passwords .... PLEASE PLEASE PLEASE help me... FYI I dont want any links... just type the answer, please.
