I have a page with content that goes below the fold.

I'm trying to calculate the height of the browser's viewable area this
way...

$(window).height();

...but it always returns the height of the whole page (above and below
the fold) - the same value as $('body').height();

Is this correct behavior?

For now, I'm using $.viewportHeight plugin to get by. I've searched
the forum, and can only find a couple of vague references to this
problem with no definitive answer.

Thanks!
-Mundi

Reply via email to