Wednesday, 25 July 2012

How to detect IE7 with jQuery?

jQuery has a property called "$.browser.msie" which returns true when the browser is Internet Explorer. It can be combined with "$.browser.version" to decide what version of IE it is.

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

No comments:

Post a Comment