Full version: jsB@nk » Security » Passwordor » Password Page Protector
URL: https://www.javascriptbank.com/password-page-protector.html
A very simple JavaScript password protecting javascript. Should not be used for anything serious.
Full version: jsB@nk » Security » Passwordor » Password Page Protector
URL: https://www.javascriptbank.com/password-page-protector.html
<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>
b>Password is "javascriptbank.com"</b><br><FORM><input type="button" value="Press here to login" onClick="passWord()"></FORM>