Check for IE and friends

CSS Browser Targeting

IE5.01IE5.5IE6IE7IE8CSSThis Browser
YESYESYESYESYES background:;YESNO
YESYESYESYES NO*background:;YESNO
YESYESYES NO NO_background:;YESNO
YESYESYES NO NO* html {}YESNO

IE Conditional Comment

<!--[if !IE]><!--> IE Conditional Comment: NOT Internet Explorer <!-- <![endif]-->
<!--[if gte IE 8]> IE Conditional Comment: Internet Explorer 8 and above <![endif]-->
<!--[if IE 7]> IE Conditional Comment: Internet Explorer 7 only <![endif]-->
<!--[if gte IE 7]> IE Conditional Comment: Internet Explorer 7 and above <![endif]-->
<!--[if IE 6]> IE Conditional Comment: Internet Explorer 6 only <![endif]-->
<!--[if lte IE 6]> IE Conditional Comment: Internet Explorer 6 and below <![endif]-->
<!--[if lt IE 6]> IE Conditional Comment: Internet Explorer 5.x <![endif]-->
<!--[if IE 5.5000]>IE Conditional Comment: Internet Explorer 5.5000 only <![endif]-->
<!--[if IE 5.0]> IE Conditional Comment: Internet Explorer 5.0 only <![endif]-->
<!--[if IE]> IE Conditional Comment: Internet Explorer <![endif]-->

Javascript Browser Targeting

JScript Conditional Comments

Javascript / JScript Version and Rendering Mode Checks

Support Code Result Comment
All Browsers :navigator.userAgent "" 
IE Conditional Comments :/*@cc_on @_jscript_version @*/ "" 
IE Conditional Comments :/*@cc_on @_jscript_build @*/ "" 
MooTools :Browser.Platform.name "" 
MooTools :Browser.Engine.name "" 
MooTools :Browser.Engine.version "" 
IE8+ :document.documentMode ""5 Quirks, 7 Strict, 8 Standards
IE6+ :document.compatMode ""CSS1Compat | BackCompat
Windows Version XP XP XP XP XP XP Vista XP XP
IE Version IE 5.01 IE 5.5 IE 6 IE 6 IE 7 IE 7 IE 7 IE 8 beta 1 IE 8 beta 1
Type Standalone Standalone Standalone Native Standalone Native Native Standalone Native
JScript Version 5.1 5.5 5.6 5.6 5.7 5.7 5.7 5.7 5.7
JScript Build 5010 6330 8819 8831 5730 5730 6000 17184 17184