js关闭当前页面不弹出提示

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

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

原文地址:https://www.cnblogs.com/penghq/p/10710355.html