如何检测ie版本,如果低于ie6,自动安装ie6?

解决方案 »

  1.   

    if (!((/MSIE (6|7|8|9|(\d\d))/g).test(navigator.appVersion)||(/MSIE 5.5/g).test(navigator.appVersion)&&(/SP2/g).test(navigator.appMinorVersion)))
    {
    alert("The system supports Microsoft IE 5.5 with SP2 or above. \nYour browser is not fully supported!");
    window.opener=null;
    window.close();
    }
      

  2.   

    <script language="JavaScript">
    document.write("浏览器名称: "+navigator.appName);
    document.write("版本号: "+navigator.appVersion.split(";")[1].split(" ")[2]);
    </script>
      

  3.   

    to  JK_10000(JK) ( )  如果IE版本到了 MSIE 19呢?
    你的RegExp就不能用咯哈哈