如题,关闭的时候js会报错误
Scripts may close only the windows that were opened by it.
试过
window.opener=null;
window.open('','_self');
window.close();
or
window.opener=null;
window.open('','_self', '');
window.close();
or
open(location,'_self', ' '); //这里有设置个弹窗, 会无限弹窗。
望大神赐教
没明白你你意思,你是要关闭怎么打开的窗口
有解决方法了吗,求告知,谢谢!
浏览器为了安全,禁止这样的操作,