Test for Internet Explorer in JavaScript

Avatar of Chris Coyier
Chris Coyier on
var isMSIE = /*@[email protected]*/0;

if (isMSIE) {
  // do IE-specific things
} else {
  // do non IE-specific things
}