title: setting a whole style string to an element from javascript (not individual style parameters)
body: <p>I need to set an arbitrary style to a span via javascript.</p>
  
  <p>I know I can do things like: <code>span.style.height="250px"</code>;
  But I need to be able to insert a random full style definition from a template </p>
  
  <p>for example</p>
  
  <pre><code>float:left; 
  text-decoration:underline; 
  cursor:pointer; 
  color:blue;
  </code></pre>
  
  <p>Is there a way to do that in Javascript? Something like:</p>
  
  <p><code>element.style="all style definition here";</code></p>