html输入密码访问
2019-07-15 00:26:15 -0400
function password() {
var testV = 1;
var pass1 = prompt('请输入密码','');
while (testV < 3000) {
if (!pass1)
history.go(-1);
if (pass1 == "jgo") {//初始密码123
alert('密码正确');
break;
}
testV+=1;
var pass1 =
prompt('密码错误!请重新输入:');
}
if (pass1!="password" & testV ==3000)
history.go(-1);
return " ";
}
document.write(password());
Back to home
Subscribe |
Register |
Login
| N