title: How to change CSS file using JavaScript?
body: <p>I would ask how to change src of CSS using pure Javascript. I saw on internet that one guy used cookies for this, by i tried sth like this:</p>
  
  <pre><code>window.onload = function onload() {
  setTimeout(function(){
      document.styleSheets[1].href = "file:///C:/Users/Ma%C5%9Blan/Desktop/Site/bootstrap-3.3.6-dist/project1a.css";
      }, 3000);
  </code></pre>
  
  <p>};</p>
  
  <p>And it didn't work (i want to change CSS after 3 s, i know that actual localization is local, on my PC. Just trying :) ). I want to swap whole file.</p>
  
  <p>Any ideas? If it's impossible in pure JS, show me jQuery way then.</p>
  
  <p>Thanks!</p>