IE sniffer using conditional compilation


/ Published in: JavaScript
Save to your folder(s)

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


Copy this code and paste it in your HTML
  1. var isMSIE = /*@cc_on!@*/false;

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.