http://blog.joycode.com/lostinet/archive/2004/07/12/27195.aspx look it
if (parent.frames.length==0) { var udswin=window.open("main.aspx","","toolbar=yes,status=yes,resizable=yes"); udswin.moveTo(0,0); udswin.resizeTo(window.screen.availWidth,window.screen.availHeight);
然后测试这个窗口是否存在
如果不存在,一般就是被拦截了,(google ,3721,msn)都会拦截,这个时候你就可以
提醒用户关掉当前站点的拦截就可以。
look it
{
var udswin=window.open("main.aspx","","toolbar=yes,status=yes,resizable=yes");
udswin.moveTo(0,0);
udswin.resizeTo(window.screen.availWidth,window.screen.availHeight);
}
******************
请问该如何判断main.aspx已经打开,如果没有打开,一面就跳转回index.aspx,请问中间的代码该
怎么加?????
******************
window.opener = null;
window.close();