I've been struggling to position the Javascript popup notification using the width, height, top, and left parameters in the window.open function. No matter what I attempt, it stubbornly remains in the top-left corner. Can someone offer some guidance on how to fix this issue?
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 "";
}