本文介绍了关闭弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个使用此代码打开的弹出窗口:
I have a popup window which is opened using this code:
function _openpageview(fieldid,objectid,opennew)
{
var url='/s_viewpagefield.jsp?fieldid='+fieldid+'&codedid='+objectid;
web_window = window.open(url,'_blank', 'menubar=yes,location=no,scrollbars=yes,width=800,height=600,status=no,resizable=yes,top=0,left=0,dependent=yes,alwaysRaised=yes');
web_window.opener = window;
web_window.focus();
}
如何从内部关闭弹出窗口弹出窗口?
How can I close that popup from within the popup?
window.close();
self.close();
web_window.close();
一切都不起作用
推荐答案
旧提示......
var daddy = window.self;
daddy.opener = window.self;
daddy.close();
这篇关于关闭弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!