关于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有解决办法没? 关于js正则用exec还是match匹配的一个问题 请问javascript的prototype问题? javascript 菜鸟问this的含义!! 求救:document.location.href的问题 我想实现按一按button实现表格的行数再增加一行,接del删除增加的一行,如何实现? 一个简单的问题 解决就结帖给分 关于层的问题,解答必给分!! 请教:关于javascript操作Cookie的问题 js立即执行函数问题 求个大佬来教一下,都是一些简单的东西 哪位大牛能帮扣个网站效果,万分感谢! 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有解决办法没?