Detecting if height of DIV changes
<p>Using <code>document.getElementByID('div1').clientHeight</code> How can I detect if div1's height changes?</p>

<p>I need to make an operation if the condition (Div1's height change) satisfies.</p>

<p>E.g.</p>

<pre><code>if(document.getElementByID('div1').clientHeight != //old div1's height)
{
   // do my operation
}
</code></pre>

<p>Can anybody please provide me with the syntax of such JavaScript.</p>
