//test ie 6, 7, 8 var div = document.createElement("div"); div.innerHTML = ""; var isIe8orLower = !!div.getElementsByTagName("i").length; if (!isIe8orLower && !navigator.userAgent.match(/Opera Mini/i)) { document.getElementsByTagName("body")[0].className += " can-ff"; } // mobile browsers test if (RFE.isMobile.any()) { document.getElementsByTagName("body")[0].className += " is-mobile"; } else { document.getElementsByTagName("body")[0].className += " is-not-mobile"; }