How do I target only Internet Explorer 10 for certain situations like Internet Explorer-specific CSS or Internet Explorer-specific JavaScript code?
I tried this, but
If you must do this, you can check the user agent string in JavaScript:
var isIE10 = !!navigator.userAgent.match(/MSIE 10/);
As other people have mentioned, I'd always recommend feature detection instead.