This time I will bring you how to judge the IE 6 7 8 9 of the browser. What are the precautions for judging the IE 6 7 8 9 of the browser? The following is a practical case, let’s take a look. .
<script type="text/ javascript "> var browser=navigator.appName var b_version=navigator.appVersion var version=b_version.split(";"); var trim _Version=version[1].replace(/[ ]/g,""); if(browser=="Microsoft Internet Explorer" && trim_Version=="MSIE6.0") { window.location.href = 'http://xlhuang.top/browser/'; } else if(browser=="Microsoft Internet Explorer" && trim_Version=="MSIE7.0") { window.location.href = 'http://xlhuang.top/browser/'; } else if(browser=="Microsoft Internet Explorer" && trim_Version=="MSIE8.0") { window.location.href = 'http://xlhuang.top/browser/'; } else if(browser=="Microsoft Internet Explorer" && trim_Version=="MSIE9.0") { window.location.href = 'http://xlhuang.top/browser/'; } </script>
Other related articles!
Related reading:How to solve the BUG of IE11 textarea not wrapping
How to make Vue Es6 parse to Es5 syntax
The above is the detailed content of How to determine the browser IE 6 7 8 9. For more information, please follow other related articles on the PHP Chinese website!