title: How to Create Cookies to Remember a Javascript Instruction
body: <p>John Giotta kindly gave me this code earlier (on stack overflow) in order to implement a "turn off styles" button on my website (for a university assignment).</p>
  
  <pre><code>function nostyle() {
      for (i=0; i&lt;document.styleSheets.length; i++) {
          void(document.styleSheets.item(i).disabled=true);
      }
  } 
  </code></pre>
  
  <p>I was wondering how easy it would be to implement a cookie to remember that this javascript has been applied so that every page navigated after on the site has styles turned off (My knowledge is <strong>extremely</strong> basic, I am only a first year). </p>
  
  <p>Regards</p>