WEB开发:在页Login.aspx中,点登陆按钮弹出一个新窗口Index.aspx:代码:
window.open('ProIndex.aspx','newwindow','height=630,width=1020,help=no,fullscreen=no,maximize=yes,minimize=no,top=0,left=0,toolbar=no,menubar=no,scrollbars=no,resizable=yes,status=no')
this.close();
我尝试在window.open后面加了this.close(),有关闭的提示的窗口!问题:如何在弹出窗口Index.aspx后,不弹出提示关闭窗口,直接关闭或是隐藏其父页面(Login.aspx)
window.open('ProIndex.aspx','newwindow','height=630,width=1020,help=no,fullscreen=no,maximize=yes,minimize=no,top=0,left=0,toolbar=no,menubar=no,scrollbars=no,resizable=yes,status=no')
this.close();
我尝试在window.open后面加了this.close(),有关闭的提示的窗口!问题:如何在弹出窗口Index.aspx后,不弹出提示关闭窗口,直接关闭或是隐藏其父页面(Login.aspx)
改成
top.opener = null;
top.open("", "_self");
top.close();
谢谢,确实是这样解决的,在.NET也发了个同样的帖子!
window.open('','_self','');
window.close();
这一句ie可用,不过ff有点问题
其实你可以直接用_self
window.open("CreateRepeater.aspx","_self",'height=630,width=1020,help=no,fullscreen=no,maximize=yes,minimize=no,top=0,left=0,toolbar=no,menubar=no,scrollbars=no,resizable=yes,status=no');
ie ff都试过可以