关于chrome浏览器window.close无效 chromewindow.close 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 window.opener = null;window.open('','_self');window.close();這樣試試 onepage关联的内容在本页内打开或者在本页内跳转新页面 在跳回 1.关联的内容在本页内打开是不存在这个问题,但第二个页面是由servlet的request.forward跳转到的新页面2.再跳回也不行,试过了谢谢您的回答。 我也遇到了类似的问题,谷歌浏览器关不掉。window.opener = null;window.open('','_self');window.close();这样也不行。 人家说了,close只能用来关闭window.open打开的窗口。window.opener = null;window.open('','_self');window.close();这些都属于类似漏洞级的方法,chrome的执行的东西都是很严格的 现在打开窗口都是采用div做的,怎么关闭都可以的 open(url, '_self').close();需要有个跳转的地方,跳转到主目录可以让url = ‘ ’;(有空格)stackoverflow上的链接http://stackoverflow.com/questions/19761241/window-close-and-self-close-do-not-close-the-window-in-chrome \<button class="close" onclick="javascript:window.open(location, '_self').close();">关闭</button><button class="close" onclick="javascript:window.open(location, '_self').close();">关闭</button>这样子 open(‘ ’, '_self').close();加了空格,chrome下还是不行。楼主怎么解决的? 地址栏输入A网址,进入A。在A页面中window.open打开B页面。现在要关闭A,window.close在chrome下不行。LS有解决办法没? 求助!!html页面采用js发email实例 js给文本框赋值(急) 加到300~~请帮忙~! 下面是创建javascript对象的三种方法,有何不同?从内存分配的角度说明。 关于VLC嵌入网页的用户认证问题 请教一个初级问题,谢谢 急求相助!showModalDialog()打开的对话框做提交时总弹出新窗口,或者在主窗口中用ifram 框架但在对话框中又不执行提交操作.为什么? 多文件上传的表单 javascript中有访问地图的API,API访问不了,请问什么问题? vue init webpack 新项目出错 哪位大牛能帮扣个网站效果,万分感谢! html中插入谷歌字体没有显示
window.open('','_self');
window.close();這樣試試
或者在本页内跳转新页面 在跳回
2.再跳回也不行,试过了
谢谢您的回答。
window.opener = null;
window.open('','_self');
window.close();
这样也不行。
window.opener = null;
window.open('','_self');
window.close();
这些都属于类似漏洞级的方法,chrome的执行的东西都是很严格的
stackoverflow上的
链接
http://stackoverflow.com/questions/19761241/window-close-and-self-close-do-not-close-the-window-in-chrome
<button class="close" onclick="javascript:window.open(location, '_self').close();">关闭</button>
<button class="close" onclick="javascript:window.open(location, '_self').close();">关闭</button>这样子
加了空格,chrome下还是不行。楼主怎么解决的?
LS有解决办法没?