IE浏览器的判断
function compatibleIE8(){
var browser = navigator.appName;
var b_version = navigator.appVersion;
if(browser == "Microsoft Internet Explorer"){
var version = b_version.split(";")[1].replace(/[ ]/g,"");
if(version == "MSIE8.0"){
.........
}
}
}
2.
- function isIE() { //ie?
- if (!!window.ActiveXObject || "ActiveXObject" in window)
- return true;
- else
- return false;
- }