判断浏览器ie6版本并跳转显示提示页面ie6.html
<script type="text/javascript">
ieGo();
function ieGo(){
var ie = !-[1,];
if(ie == true) {
var ua = navigator.userAgent.toLowerCase();
var version = parseInt(ua.match(/msie ([\d.]+)/)[1]);
if(version <= 6) {
location.href=‘ie6.html‘;
}
}
}
</script>
时间: 2024-11-08 22:42:25