<SCRIPT LANGUAGE="JavaScript">; function password() { var testV = 1; var pass1 = prompt('请输入VIP权限密匙',''); while (testV < 3) { if (!pass1) history.go(-1); if (pass1 == "123456") { break; } else { location.href="密码错误后跳转地址"; break; } testV+=1; var pass1 = prompt('Password mistake! 你无权查看内容,赶快离开!或重新输入:'); } if (pass1!="22" & testV ==3) history.go(-1); return " "; } document.write(password()); </SCRIPT>