A very simple example to determine whether IE browser version is too low
Example structure is as follows, in fact, a page with the introduction of jquery can be, by the way a standard structure (note that the IE6 and IE7 version of the lower case to see its cue effect)
Copy Code code as follows:
<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 "/>
<title> Check IE browser version is too low </title>
<script type= "Text/javascript" src= "Js/jquery.min.js" ></script>
<script type= "Text/javascript" >
* To determine if the browser version is too low * *
$ (document). Ready (function () {s
var b_name = navigator.appname;
var b_version = navigator.appversion;
var version = B_version.split (";");
var trim_version = version[1].replace (/[]/g, "");
if (B_name = = "Microsoft Internet Explorer") {
/* If it is IE6 or ie7*/
if (trim_version = = "MSIE7.0" | | | trim_version = = "MSIE6.0") {
Alert ("IE browser version is too low, please go to the designated website to download the relevant version");
Then skip to the download site where you want to connect
Window.location.href= "http://jiaoxueyun.com/download.jsp";
}
}
});
</script>
<body>
</body>