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


 

序号 关闭代码 需要确认 无任何作用 无需确认
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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM