<p>In some existing code there is a test to see if the user is running IE, by checking if the object Browser.Engine.trident is defined and returns true.</p>

<p>But how can I determine if the user is running IE6 (or earlier) or IE7 (or later)?</p>

<p>The test is needed inside a JavaScript function so a conditional comment doesn't seem suitable.</p>

If you are already using jQuery in a pre-1.9 version AND you don't need to detect IE 11, you can do this:
```
```
if (jQuery.browser.msie == true) { 
if (jQuery.browser.version == 7.0)
  // .. do something for 7.0
else 
  // .. do something for < 7.0
}
```
```