Hi all, I was wondering how I could make this js password prompt NOT case sensitive.
the way it is like that, it can only be entered in all lowercase, I want to have it not matter if it's upper or lower. Thanks.
Code:
<HTML>
<HEAD>
<SCRIPT language="JavaScript">
<!--hide
var password=prompt('Enter password:','');
var mypass="fish";
if (password==mypass)
{
window.location="continue.html";
}
else
{
window.location="error.html";
}
//-->
</SCRIPT>
</HEAD>
<BODY> </BODY>
</HTML>
the way it is like that, it can only be entered in all lowercase, I want to have it not matter if it's upper or lower. Thanks.