62,074
社区成员
发帖
与我相关
我的任务
分享
如题
使用window.close不能关闭Edge浏览器,对于edge浏览器不能关闭非window.open打开的页面。
尝试了以下各种方法还是无效,网上也有各种说法,基本上都试过了不管用,有没有其他方法。
方法1:
window.opener = null;
window.open('about:blank', '_self').close();
方法2:
window.open('', '_self', '').close();