关闭父窗口的问题! if (window.opener<>null || !window.opener.closed){ window.opener.opener=null; window.opener.close();} 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 http://expert.csdn.net/Expert/topic/2350/2350292.xml?temp=.3081171 if (!self.opener.closed){ self.opener.close();} if (window.opener!=null || !window.opener.closed){ window.opener.opener=null; window.opener.close();}更正^^ 这个是default.html的打开代码 window.open ("//localhost/EForum/login.aspx", "newwindow", "height=150, width=350, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=yes,left=250,top=250") TXZY(木下藤吉郎) (谢谢。你的方法行啦。是我自己的问题window.opener.opener=null;为什么有两个opener啊。 你现在要关闭default.html吗?不要判断,直接执行下面两句,有什么错误提示吗?注意这两句话,必须是在login.aspx里面的.不能放在default.html里面.window.opener.opener=null;window.opener.close();如果要在default.html里面执行需要改一改.window.opener=null;window.close(); 呵呵login.aspx的窗口window.opener是default.html如果要关闭default.html,而没有提示,需要清除default.html的window.opener所以对login.aspx中执行的时候就需要window.opener.opener=null需要理解哈.^^ Extjs4 tree 分页 帮忙看下js问题 为什么数据库里的数据打不出来呀JSP js在IE 里 调试时 跳到一个 叫“Script-window script block” 能否用javascript调用通用对话框?? 动态弹出页面怎么做? 哪位牛人能弄出来? 各位好问一个js的问题 可用分捐赠[2003-1-13=>2003-1-25] Total 5786 Symbol风格的JS类私有属性和私有方法的疑问 怎么动态改变HTM文件中TITLE的值 弟兄们!为什么文件的字体有时候大有时候小啊?
self.opener.close();}
{
window.opener.opener=null;
window.opener.close();
}更正^^
window.open ("//localhost/EForum/login.aspx", "newwindow", "height=150, width=350, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=yes,left=250,top=250")
你的方法行啦。
是我自己的问题
window.opener.opener=null;
为什么有两个opener啊。
注意这两句话,必须是在login.aspx里面的.不能放在default.html里面.
window.opener.opener=null;
window.opener.close();如果要在default.html里面执行需要改一改.
window.opener=null;
window.close();
所以对login.aspx中执行的时候就需要
window.opener.opener=null需要理解哈.^^