Code:
win3 = window.open("Pages/Login.php", "newwindow", "width=316, height=468");
win3.moveTo(screen.width / 2 - 300, screen.height / 2 - 250);
Result:
Why have different size ?
Code:
win3 = window.open("Pages/Login.php", "newwindow", "width=316, height=468");
win3.moveTo(screen.width / 2 - 300, screen.height / 2 - 250);
Result:
Why have different size ?
From MDN for strWindowFeatures
: The string must not contain any whitespace, and each feature name and its value must be separated by a comma
So,
win3 = window.open("Pages/Login.php", "newwindow", "width=316,height=468");
win3.moveTo(screen.width / 2 - 300, screen.height / 2 - 250);
should be okay?
I'm fix it with resizeTo() function.
Ty for help!