Detect IE6 in javascript


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



Copy this code and paste it in your HTML
  1. // Internet Explorer 6
  2. var IE6 = false /*@cc_on || @_jscript_version < 5.7 @*/;
  3.  
  4. // exactly Internet Explorer 7
  5. var IE7 = false /*@cc_on || @_jscript_version == 5.7 @*/;
  6.  
  7. // at least Internet Explorer 7
  8. var gteIE7 = false /*@cc_on || @_jscript_version >= 5.7 @*/;
  9.  
  10. // any Internet Explorer (thanks to Dean)
  11. var isMSIE = /*@cc_on!@*/false;

URL: http://www.barattalo.it

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.