title: Set CSS Property by string with JavaScript
body: <p>So I saw this question - <a href="https://stackoverflow.com/questions/10675885/get-set-css-property-values-via-javascript-questions?rq=1">Get/Set CSS property values via Javascript: questions</a> and this solution - <a href="http://www.w3schools.com/jsref/dom_obj_style.asp" rel="nofollow noreferrer">http://www.w3schools.com/jsref/dom_obj_style.asp</a>.</p>
  
  <p>Where my question differs is I am building a WYSIWYG editor and I want to dynamically set the properties via native javascript.  So I was wondering if there was a way I could do something like this:</p>
  
  <pre><code>document.getElementById("myH1").style.property("color") = "red";
  </code></pre>