js判断ie6浏览器

来源:互联网 发布:mac照片搜索 编辑:程序博客网 时间:2024/05/22 05:04
<script type="text/javascript">if (window.ActiveXObject) {  var ua = navigator.userAgent.toLowerCase();  var ie=ua.match(/msie ([\d.]+)/)[1]if(ie==6.0){ alert("您的浏览器版本过低,在本系统中不能达到良好的视觉效果,建议你升级到ie8以上!");window.close();}}</script>
原创粉丝点击