1 var checkIE = function(){ 2 if(navigator.appName == 'Microsoft Internet Explorer' || navigator.userAgent.indexOf("Trident") > 0){ 3 return true; 4 }else{ 5 return false; 6 } 7 }