title: How can I determine which version of IE a user is running in JavaScript?
body: <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>