Return to Snippet

Revision: 5683
at March 25, 2008 21:09 by cczona


Initial Code
var isMSIE = /*@cc_on!@*/false;

Initial URL
http://dean.edwards.name/weblog/2007/03/sniff/

Initial Description
Note that the comment is part of the code here.   IE 5+ (including Mac) will evaluate to true by using conditional compilation.

Initial Title
IE sniffer using conditional compilation

Initial Tags
javascript, ie, browser

Initial Language
JavaScript