Search code examples
jquerybrowserinternet-explorerinternet-explorer-7

How to detect IE7 with jQuery?


How to detect IE7 with jQuery possibly using jQuery.browser?


Solution

  • Got a method

    if ($.browser.msie  && parseInt($.browser.version, 10) === 7) {
      alert('IE7'); 
    } else {
      alert('Non IE7');
    }
    

    -- update

    Please note that $.browser is removed from jQuery 1.9