Question: how to find height of div in javascript?
Answer: In JavaScript, you can use the clientHeight property which returns the height of an element, including its vertical padding. Basically, it returns the actual space used by the displayed content. For example, the following code returns 120 which is equal to the original height plus the vertical padding.