Using document.getElementByID('div1').clientHeight How to determine if div1 height is changing?
I need to perform an operation if the condition (Div1 height change) is satisfied.
eg.
if(document.getElementByID('div1').clientHeight != //old div1 height) { // do my operation }
Can anyone provide me with the syntax of such JavaScript.
source share