»
EnglishFrenchVietnamese

Print - Password Protect - JavaScriptBank.com

Full version: jsB@nk » Security » Passwordor » Password Protect
URL: http://www.javascriptbank.com/password-protect.html

Password Protect © JavaScriptBank.comUse 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: http://www.javascriptbank.com/password-protect.html



JavaScript
<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-->