title: Changing the background color in HTML with a Javascript Variable
body: <p>I have some Javascript Variables which i want to give to my HTML stylesheet:
  For Example my Variable:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  var color="#2E2E2E";
  &lt;/script&gt;
  </code></pre>
  
  <p>Now I want to give this variable to one of my stylesheets. For Example:</p>
  
  <pre><code>&lt;div style="background:color"&gt;this is a test&lt;/tes&gt;
  </code></pre>
  
  <p>I am a real nooby and I am only doing one little project. I only know a little html. Can someone please explain me how it works? I found a lot in the net but don't know how to use.</p>