window.close(); 关闭浏览器窗口js代码的分析总结

时间:2015-07-09 21:15:56   收藏:0   阅读:732

 

序号关闭代码需要确认无任何作用无需确认
1 window.close() IE7 firefox,chrome,
safari
Opera
2 window.opener=null;
window.open(‘‘,‘_self‘);
window.close();
  firefox IE7,Opera,
chrome,safari
3 window.open(‘‘,‘_self‘);
window.close();
  firefox IE7,Opera,
chrome,safari
4 window.opener=null;
window.close();
IE7 firefox,safari chrome,Opera
5 var opened=window.open(‘about:blank‘,‘_self‘);
opened.opener=null;
opened.close();
  firefox safari,IE7,
chrome,Opera
6 var opened=window.open(‘about:blank‘,‘_self‘);
opened.close();
  safari,firefox firefox,IE7,
chrome,Opera

原文:http://www.cnblogs.com/rongfengliang/p/4634061.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!