title: bgcolor vs background-color vs backgroundColor
body: <p>I'm trying to make a "strobe light" for the heck of it in javascript and I found some code that would do it for me on the internet...but they used bgcolor and I felt that I should be proper but the code only works if I leave it bgcolor...so you know what I mean here's the original:</p>
  
  <pre><code>&lt;html&gt;&lt;head&gt;
  &lt;title&gt;Strobe&lt;/title&gt;
  
  &lt;script&gt;
  
  function toggleBgColor()
  {
    document.bgColor = document.bgColor == '#ffffff' ? '#000000' : '#ffffff';
  
    setTimeout('toggleBgColor()', 70); //in milliseconds
  }
  &lt;/script&gt;
  &lt;/head&gt;
  
  &lt;body onLoad='toggleBgColor();'&gt;
  &lt;/body&gt;&lt;/html&gt;
  </code></pre>
  
  <p><br><br></p>
  
  <p>and Here's my changes:
  <br><br><br></p>
  
  <pre><code>&lt;html&gt;&lt;head&gt;
  &lt;title&gt;Strobe&lt;/title&gt;
  
  &lt;script&gt;
  
  function toggleBgColor()
  {
    document.body.style.background-color = document.body.style.background-color == '#ffffff' ? '#000000' : '#ffffff';
  
    setTimeout('toggleBgColor()', 70); //in milliseconds
  }
  &lt;/script&gt;
  &lt;/head&gt;
  
  &lt;body onLoad='toggleBgColor();'&gt;
  &lt;/body&gt;&lt;/html&gt;
  </code></pre>
  
  <p><br><br>
  I've also tried changing the document.body.style.background-color to document.body.style.background and document.body.style.backgroundColor ...None of them work...what am I doing wrong?</p>