Check for IE 10 [duplicate]
This question already has an answer here: How do I target only Internet Explorer 10 for certain situations like Internet Explorer-specific CSS or Internet Explorer-specific JavaScript code? 25 answers How can I make a message box appear on page load if the user is using IE 10? function ieMessage() { alert("Hello you are using I.E.10"); } My webpage is a JSF facelet (XHTML). Ian The real way to detect this, without conditional comments and without User Agent sniffing is with conditional compilation: <script type="text/javascript"> var isIE10 = false; /*@cc_on if (/^10/.test(@_jscript_version))