Check out the Latest Articles:

jQuery-logo
In my last post you have seen how to detect Internet Explorer 6 using Javascript. If you love jQuery like I do then here is the simple snippet that you can use to Internet Explorer 6 using jQuery.

jQuery.each(jQuery.browser, function(i, val) {
if(i=="msie" && jQuery.browser.version.substr(0,1)=="6")
alert("Do stuff for IE 6")
});

Related posts:

  1. Detect Internet Explorer 6 using JavaScript
  2. The Simplest Way to Create a Cross Browser Compatiable Website
  3. How to create Rounded Corners using CSS
  4. The Internet – Misconceptions Explained
  5. 10 Simple ways to protect and secure your PC from Internet Threats


  1. [...] You can also detect Internet Explorer using jQuery [...]

  2. jQueryGlobe on Monday 2, 2009

    You don`t need to use “each”, so better would be –
    if ($.browser.msie && $.browser.version.substr(0,1) == 6) {

    }

    Btw, latest version of jQuery (1.3.2) has issue with jQuery.browser.version detection, it reports wrong IE versions on some corrupted IE userAgent strings – http://blog.orite.com.au/tag/ie8/