Witam,
Jak najprościej i najszybciej rozpoznac przeglądarkę, chcę wykonac inny kod dla IE i inny dla Opery i FF.
Pozdrawiam
// More details: <a href="http://docs.jquery.com/Utilities/jQuery.browser" target="_blank">http://docs.jquery.com/Utilities/jQuery.browser</a> var userAgent = navigator.userAgent, uaMatch = function( ua ) { ua = ua.toLowerCase(); var match = /(webkit)[ \/]([\w.]+)/.exec( ua ) || /(opera)(?:.*version)?[ \/]([\w.]+)/.exec( ua ) || /(msie) ([\w.]+)/.exec( ua ) || !/compatible/.test( ua ) && /(mozilla)(?:.*? rv:([\w.]+))?/.exec( ua ) || []; return { browser: match[1] || "", version: match[2] || "0" }; }, browserMatch = uaMatch(userAgent); alert( browserMatch.browser + ' ' + browserMatch.version );