现在的位置: 首页 > 综合 > 正文

js关闭谷歌浏览器的当前页面

2018年08月18日 ⁄ 综合 ⁄ 共 202字 ⁄ 字号 评论关闭

老式关闭当前页面jswindow.opener=null;window.open('','_self');window.close();  但是关


闭 Chrome 浏览器会有问题 Scripts may close only the windows that were opened by it. 


  搜了半天居然没有答案;所以我自己发上来以便别人需要 关闭当前页面js


 open(location, '_self').close();

抱歉!评论已关闭.