How to reset the height of iframe to 0 before adding content and getting height
<p>I am using this to height of iframe conent:</p>

<pre><code>$('iFrame').contents().height();
</code></pre>

<p>What i want is set the content to empty before adding content to it using url.
How can i do that. I tried this but is not working: </p>

<pre><code>function loadiFrame(url) {

   $('iFrame').contents().empty();
   document.getElementById('iFrame').src = url;
}
</code></pre>
