`
annan211
  • 浏览: 442970 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

IE6、IE7、IE8、IE9关闭窗口不提示的JS代码

阅读更多

第一种 窗口无提示 自动关闭

<script>

this.window.opener=null;

window.close();

</script>

 第二种 IE6 IE7 IE8 窗口无提示 自动关闭

<script>

this.window.opener=null;

window.open("","_self");

window.close();

</script>

 

第三种 窗口延时关闭

<script>

this.window.opener=null;

window.open("","_self");

window.setTimeOut("window.close",1000);

</script>

 

第四种 关闭IE7 IE8 时不提示

<script>


window.open("","_top");

window.top.close();

</script>

第五种 点击链接没有提示的js关闭窗口

<a href="javascript:self.close()">关闭窗口</a>

 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics