The shortest way to identify Internet Explorer in JavaScript

    Dean Edwards came up with one of the shortest and most concise ways to define Internet Explorer in JavaScript:
    var isMSIE = / * @ cc_on! @ * / False;

    see Conditional Compilation of JavaScript in IE

    Also popular now: