2010-06-17 56 views
1

我想打开一个窗口,然后将原始页面重定向到一个新的位置。它会打开窗口,但在重定向父页面之前,它也会关闭新窗口。我该如何解决这个问题为什么这是关闭新的弹出窗口

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”; 
} 
+0

什么是'popWinCenterScreen'? – SLaks 2010-06-17 00:13:30

+0

在你的问题中,代码是否在语法上也是无效的?缺少一个''',在最后一行有卷曲引号而不是直引号。 – BalusC 2010-06-17 00:19:14

回答