get height of a div and set the height of another div using it
<p>I have two divs, neither have a height set in css, as I want to take whatever height they end up as and set the other div to be that height.</p>

<p>The javascript I have is this</p>

<pre><code>function fixHeight() {
    var divh = document.getElementById('prCol1').height;
    document.getElementById('prCol1').innerHTML = '&lt;ul&gt;&lt;li&gt;' + divh + '&lt;/li&gt;&lt;/ul&gt;';
    document.getElementById('prCol2').style.height = divh + 'px';
}
</code></pre>

<p>I have the following line of code just to see if I am getting some kind of actual response.</p>

<pre><code>document.getElementById('prCol1').innerHTML = '&lt;ul&gt;&lt;li&gt;' + divh + '&lt;/li&gt;&lt;/ul&gt;';
</code></pre>

<p>I have a onload set to run the function</p>

<p>my two divs look like this</p>

<pre><code>&lt;div id="prCol1"&gt;
     ..content..
&lt;/div&gt;
&lt;div id="prCol2" class="slideshow"&gt;
    ..content..
&lt;/div&gt;
</code></pre>
