How to do browser detection with jQuery 1.3 with $.browser.msie deprecated?
        Posted  
        
            by Darryl Hein
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Darryl Hein
        
        
        
        Published on 2009-01-18T09:29:10Z
        Indexed on 
            2010/03/30
            5:53 UTC
        
        
        Read the original article
        Hit count: 397
        
How should browser detection be done now that jQuery 1.3 has deprecated (and I'm assuming removed in a future version) $.browser.msie and similar?
I have used this a lot for determining which browser we are in for CSS fixes for pretty much every browser, such as:
$.browser.opera
$.browser.safari
$.browser.mozilla
... well I think that's all of them :)
The places where I use it, I'm not sure what browser issue is causing the problem, because a lot of times I'm just trying to fix a 1 px difference in a browser.
Edit: With the new jQuery functionality, there is no way to determine if you are in IE6 or IE7. How should one determine this now?
© Stack Overflow or respective owner