The Shortest Way to Detect Internet Explorer in Javascript

Through Ajaxian, the following 12 characters code seems to be the shortest way to detect any version of Internet Explorer, including IE 8. This is the result that came from a comment in a post from the Web Reflection blog. Very interesting!

  1. IE='\v'=='v'

Average: 3.1 (13 votes)