title: Getting IE to load a different js file
body: <p>Trying to get a page to load a different js file if the browser is IE, but a different one if it is any other browser. I've corrupted this, but it won't work, does anyone have any ideas?</p>
  
  <p>Any help is appreciated:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  var ie = false;
  &lt;/script&gt;
  &lt;!--[if IE]&gt;
  &lt;script type="text/javascript"&gt;
  ie = true;
  &lt;/script&gt;
  &lt;![endif]--&gt;
  &lt;script type="text/javascript"&gt;
  if(ie == false)
  { 
  document.write ("&lt;script src="js/moreskins.js" type="text/javascript"&gt;")&lt;/script&gt;;
  } else {
      document.write ("&lt;script src="js/ieskins.js" type="text/javascript"&gt;")&lt;/script&gt;;
  }
  &lt;/script&gt;
  </code></pre>