IT技术分享

 

 

无提示关闭页面的方法

• 2025年10月3日 • 0 条评论

 

function CloseWin(){
    var ua = navigator.userAgent; var ie = navigator.appName==”Microsoft Internet Explorer”?true:false;
    if(ie){
 var IEversion = parseFloat(ua.substring(ua.indexOf(“MSIE “)+5,ua.indexOf(“;”,ua.indexOf(“MSIE “))));
    if( IEversion< 5.5){
    var str = ”;
    document.body.insertAdjacentHTML(“beforeEnd”, str);
     document.all.noTipClose.Click();
   } else {
      window.opener =null; window.close();
   }
  }else{
  window.close();
  }
}

文章作者:ma
本文地址:https://me.eastgree.cn/2025/10/03/%e6%97%a0%e6%8f%90%e7%a4%ba%e5%85%b3%e9%97%ad%e9%a1%b5%e9%9d%a2%e7%9a%84%e6%96%b9%e6%b3%95/
版权所有 © 转载时必须以链接形式注明作者和原始出处!

 

Comments

 
  1. 还没有任何评论,你来说两句吧

 

发表评论

 
  • 发表评论

标签云

dede架构 dede目录结构 jQuery Migrate js弹窗

文章存档