I've recently discovered that you can use this to detect Windows versions:
<!--[if WindowsEdition]>Blah<![endif]-->
But what values does WindowsEdition use?
Basically I'm trying to use a conditional comment to detect if users of Internet Explorer are on a Windows version that would support an upgrade to IE9 or above. I'd like to be able to detect the difference between "Windows XP and below" and "Windows Vista and higher".
The purpose of this is to direct users of IE7 and below to either an update to IE9/10, or a switch to Chrome/Firefox if their OS doesn't support IE9. The reason for doing this is that the site works in IE8, but lacks many CSS features so it is, in a few words, "ugly but usable".
windows xpdoesn't supportIE9but supportsChrome.