window.top.opener=null;
window.top.open('','_top');//top当前最顶层窗口、self表示当前打开的窗口
window.top.close();

作用于iframe嵌套页面,window.close()无效的情况。

相关文章: