zoukankan      html  css  js  c++  java
  • 关闭窗口 不弹出提示



    <script language="javascript" type="text/javascript">
        function closeWindow() {
            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 = '<object id=noTipClose classid="clsid:ADB880A6-D8FF-11CF-9377-00AA003B7A11">'
                    str += '<param name="Command" value="Close"></object>';
                    document.body.insertAdjacentHTML("beforeEnd", str);
                    document.all.noTipClose.Click();
                }
                else {
                    parent.window.opener = null;
                    parent.window.open('', '_self', ''); //for IE7
                    parent.window.close();
                }
            }
            else {
                parent.window.close()
            }
        }
     </script>
  • 相关阅读:
    华为机试练习(一)
    LM拟合算法
    5.1 模块化程序设计
    第3周 运算的流程控制
    KEGG数据库介绍
    topGO
    GO.db
    Bioconductor应用领域之基因芯片
    org.Hs.eg.db包简介(转换NCBI、ensemble等数据库中基因ID,symbol等之间的转换)
    Bioconductor的历史
  • 原文地址:https://www.cnblogs.com/shuyu/p/1702783.html
Copyright © 2011-2022 走看看