IE6 javascript can't get height by document.getElementById(id).offsetHeight
<p>I just got a problem which is I can't get the height property of a <code>&lt;p&gt;</code>.(use javascript document.getElementById(id).offsetHeight)</p>

<p>It works fine both in FF or chrome.</p>

<p>I have tried to set the style of the <code>&lt;p&gt;</code> to height:100%;/height:auto;</p>

<p>but both not work.</p>

<p>Please help me, thanks :D</p>

<p><strong>UPDATE: It seems that IE6 didn't return the offsetHeight value when page is loading, so maybe I have to put the javascript in the onload event? (Cause I put the javascript in the html during the page is load before).</strong></p>
