I am trying to detect browser using following code,
if ($.browser.msie && parseInt($.browser.version) >= 9)
but in IE9 compatibility mode with IE7 document standards it is giving browser version as IE 7. Is there any other way to do this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You should not check for a specific browser version but rather if the current browser is capable of doing what you want (e.g. opacity, rounded corners etc.)
Consider using the Modernizr framework that added several classes to the
htmltag you can use in your stylesheet to apply certain styles under certain conditions.