我尝试在 window.open 括号中使用宽度、高度、顶部和左侧参数,但无论我做什么,Javascript 弹出通知仍然停留在左上角。
有人可以帮忙吗?
function password() {
var testV = 1;
var pass1 = prompt('Please Enter Your Password','Enter your password here');
while (testV < 3) {
if (!pass1)
history.go(0);
if (pass1.toLowerCase() == "test") {
/*alert('You Are Successful, Click To Continue!'); */
var targetWin = window.open('');
break;
}
testV+=1;
var pass1 =
prompt('Access Denied - Your Password Is Incorrect, Please Try Again.','Enter your
password here');
}
if (pass1.toLowerCase()!="password" & testV ==3)
history.go(0);
return "";
}