This example shows the difference between the dimension retrieved by the clientHeight and the dimension retrieved by the offsetHeight, the latter including the height of scrollbars.

[Right-click anywhere in this window to view the source code.]