title: html element.style.color question
body: <p>I'm writing some javascript code to make some text blink but it wont work.</p>
  
  <pre><code>        function start_blink(elementId) {
              //var red = "#ff0000";
              //var white = "#000000";
              var element = document.getElementById(elementId);
              element.style.color == 'red';
              if(document.getElementById) {
                  element.style.color = (element.style.color == 'red') ? 'white' : 'red';
                  //document.write(element.style.color);
                  blinkIntervalID = setInterval(start_blink, 1000, elementId);
              }
          }
  </code></pre>
  
  <p>It only turns red, never white, meaning that
  <code>element.style.color == 'red'</code> always returns as false. <br>Why is this the case?</p>