//判断是否IE浏览器function isIE2(){ var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串 var isIE = userAgent.indexOf("MSIE") > -1; //判断是否IE
return isIE;}