IE6、IE7、Firefox无提示关闭窗口的代码
2008-06-04 06:42
405 查看
IE6、IE7、Firefox无提示关闭窗口的代码
第1种方法:IE6:
<script>
window.opener=null;
window.close();
</script>
IE7:
<script>
window.open('','_self');
window.close();
</script>
IE6、IE7、FF通用代码:
<script>
window.opener=null;
window.open('','_self');
window.close();
</script>
第2种方法:
<!--IE下的默认关闭方法,IE会弹一个对话框让用户确认-->
<a href="javascript:window.close()">Default Close</a>
<!--IE6下可以用window.opener绕过这一个限制-->
<a href="javascript:window.operner="x";window.close()">Close IE6</a>
<!--IE7下可以用这样的方法-->
<a href="javascript:window.open('','_top'); window.top.close();">Close IE7</a>
相关文章推荐
- IE6、IE7、Firefox javascript 无提示关闭窗口的代码
- IE6、IE7、Firefox无提示关闭窗口的代码
- IE6、IE7、Firefox无提示关闭窗口的代码
- IE6、IE7、Firefox无提示关闭窗口的代码
- IE6、IE7、Firefox无提示关闭窗口的代码
- IE6、IE7、Firefox javascript 无提示关闭窗口的代码
- [JavaScript]IE6、IE7、Firefox 无提示关闭窗口的代码
- IE6 IE7 firefox 关闭 窗口 不提示 JavaScript html
- IE6、IE7、Firefox通用无提示关闭窗口
- 兼容IE6与IE7的无提示窗口关闭代码
- IE6、IE7、IE8、Firefox通用关闭窗口js
- 关于IE6和IE7关闭窗口时提示和不提示以及上传图片前的本地预览解决办法
- 关闭窗口不弹出提示对话框--ie6 和ie7
- [摘抄] JS关闭窗口, IE7 不弹出提示的代码
- 不会提示是否关闭浏览器 IE6、IE7、FF通用代码
- 自动关闭IE6或IE7窗口时不出现提示
- IE,firefox(火狐)浏览器无提示关闭窗口js实现代码小结
- 关于IE6和IE7关闭窗口时提示和不提示以及上传图片前的本地预览解决办法
- IE,firefox(火狐)浏览器无提示关闭窗口js实现代码小结
- JS直接关闭窗口不提示(支持IE6、IE7)