Assigning all style attributes of html element in javascript?
<p>If I have html element A and html element B:</p>

<pre><code>// i'm assuming the below code does not work
B.style = A.style;
</code></pre>

<p>How can I set all the style attributes of one element as those of another?  I only want to use Javascript and none of its libraries/tools/frameworks.</p>
