
JavaScript Password (Not 100% safe)
Example
Password = wizzardweb
Please remember that this is not 100% safe. An experienced user will be able to crack this script. If you would like a more secure password, you should use either .htaccess or a cgi / php / asp scripting.
Source Code
<script language="Javascript">
<!--
var password = "wizzardweb"
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 = "good.html"
}
else {
location = "bad.html"
}
//-->
</script>
Please let me know if this script was helpful to you.
[rating]