title: Using Javascript to detect Google Chrome to switch CSS
body: <p>I have been playing around with different scripts, I found one that works for everything but Chrome... this is the code I have been using to differ in .CSS files. I tried just makeing the Browser name into "Chrome" But that did not work.</p>
  
  <pre><code>if (browser == 'Firefox') {
      document.write('&lt;link rel="stylesheet" href="../component/fireFoxdefault.css" /&gt;');
  }
  if (browser == 'Safari') {
      document.write('&lt;'+'link rel="stylesheet" href="../component/default.css" /&gt;');
  }
  </code></pre>