dovrebbe darti false con tutti i browsers tranne IE 5.5 o inferioricodice:function getIEVersion(){ var v = navigator.userAgent.replace(/^.+(MSIE [0-9\.]+)[^\x00]*$/i, "$1"); if(v.indexOf("MSIE") === 0) v = parseFloat(v.split(" ")[1]); return v; }; function allowIE(maxv){ var v = getIEVersion(); return v.constructor === Number ? maxv >= v : false; }; alert(allowIE(5.5));