Full version: jsB@nk » Security » Passwordor » Password Protect
URL: https://www.javascriptbank.com/password-protect.html
Use this script to protect online files. Users cannot cancel out of it. It can also be used with your browser's home page to control Internet access on your own computer.
Full version: jsB@nk » Security » Passwordor » Password Protect
URL: https://www.javascriptbank.com/password-protect.html
<script type="text/javascript"><!-- Begin/* Created by: Javascript Newbie :: http://expage.com/javascriptnewbie*/var password;var pass1 = "javascriptbank.com"; // place password herepassword=prompt("Please enter your password:","");if (password==pass1) {alert("Valid password");// window.location= "test2.html"; // file to open if password is correct} else {alert("InValid password");// window.location= "test.html"; // file to load if password is incorrect}// End --></script><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->