A quick web search on calculating browser window height reveals that different browsers have different ways to find the browser’s window client height. In Netscape / Mozilla browsers, you can use window.innerHeight. For IE, some sources suggest using document.body.offsetHeight, but I’ve found this falls short when the HTML content does not completely fill the browser window. document.documentElement.clientHeight returns the actual window client height in IE.
$(“body”).outerHeight() returns the same value as document.body.offsetHeight, which will be less than the window height in a short HTML document and could be much larger than client height in a scrolling window.