why is this closing the new pop up window
Posted
by user295189
on Stack Overflow
See other posts from Stack Overflow
or by user295189
Published on 2010-06-17T00:10:26Z
Indexed on
2010/06/17
0:22 UTC
Read the original article
Hit count: 633
php
|JavaScript
I am trying to open a window and then redirecting the original page to a new location. It opens the window, however before redirecting the parent page, it closes the new window too. How can I fix that
function orderPrint() {
var n = new Object();
n. ID = <?php echo $ID->ID; ?>;
n.action = posttothispage.php";
n.target = popWinCenterScreen("/common/html/empty.htm", parseInt(window.screen.height * 0.8), 796, "resize");
myFuction.PostRequest(n);
window.location = “someotherpagethanthis.php”;
}
© Stack Overflow or respective owner