Note that there are some explanatory texts on larger screens.

plurals
  1. POJavaScript browser detection in IE10
    primarykey
    data
    text
    <p>I'm updating my website design because it doesn't work properly in IE10.</p> <p>I was using a combination of conditional comments and JavaScript to handle IE version detection, but since IE10 has dropped the former and I haven't found a reason for it ignoring the latter, I'm seeking help here. I've been reading this thread:</p> <p><a href="https://stackoverflow.com/questions/10964966/detect-ie-version-in-javascript">Detect IE version (prior to v9) in JavaScript</a></p> <p>But my knowledge of JavaScript isn't far off zilch, so I'm not sure whether I should be looking to modify my code or scrap it and adopt and change the code mentioned in that URL (and if so, how I should do that).</p> <p>The code I'm currently using:</p> <pre><code>&lt;link rel="stylesheet" type="text/css" href="barebones.css"&gt; &lt;!--[if lte IE 8]&gt; &lt;link rel="stylesheet" type="text/css" href="ie.css"&gt; &lt;![endif]--&gt; &lt;!--[if gt IE 8]&gt; &lt;link rel="stylesheet" type="text/css" href="default.css"&gt; &lt;![endif]--&gt; &lt;script type="text/javascript"&gt; //&lt;![CDATA[ var appName = window.navigator.appName; if (appName !== "Microsoft Internet Explorer") document.write("&lt;link rel=\"stylesheet\" type=\"text\/css\" href=\"default.css\" \/&gt;");//]]&gt; &lt;/script&gt; </code></pre> <p>If it helps I can post my site URL but I didn't want people to think I'm trying to get more site traffic or something.</p> <p>I know that the code I'm currently using can be refined a bit but I would rather get things working before having a spring clean.</p> <p>IE10 on more than one machine seems to ignore the JavaScript completely and I don't know why. IE9 handles it fine.</p> <p>Any assistance would be much appreciated.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload