»
EnglishFrenchVietnamese

Print - Password Page Protector - JavaScriptBank.com

Full version: jsB@nk » Security » Passwordor » Password Page Protector
URL: http://www.javascriptbank.com/password-page-protector.html

Password Page Protector © JavaScriptBank.comA very simple JavaScript password protecting javascript. Should not be used for anything serious.

Full version: jsB@nk » Security » Passwordor » Password Page Protector
URL: http://www.javascriptbank.com/password-page-protector.html



JavaScript
<SCRIPT>function passWord(){var testV = 1;var pass1 = prompt('Ban nhap mat khau roi bam nut OK hay bam Cancel de huy bo',' ');while (testV < 3){if (!pass1) history.go(-1);if (pass1.toLowerCase() == "javascriptbank.com"){alert('Valid password');//window.open('index.html');break;} testV+=1;var pass1 = prompt('Invalid password','');}if (pass1.toLowerCase()!="password" & testV ==3) history.go(-1);return " ";} </SCRIPT>


HTML
b>Password is "javascriptbank.com"</b><br><FORM><input type="button" value="Press here to login" onClick="passWord()"></FORM>