I am trying to get document's height, so I can do comparisons about in which part of the document a particular element is.
Here is what I have found How to get documet height and width without using jquery. However, when I open that particular link, and I open the Chrome Inspect Console and type:
document.body.clientHeight
I get
2405
This is weird because if I sum up the heights of the different parts of the site (header, content, footer), it doesn't count 2405. Particularly I get:
header: 120px
content: 450px
footer: 439px
What am I missing?
Thanks