This may help...
var windowWidth;
var windowHeight;
if(window.addEventListener) {
windowWidth = window.innerWidth;
windowHeight = window.innerHeight;
}
else {
windowWidth = document.documentElement.clientWidth ||
document.body.clientWidth;
windowHeight = document.documentElement.clientHeight ||
document.body.clientHeight;
}
The top part is for web browsers and the bottom is for Intranet
Explorer.
I use that all the time for my JavaScript window apps...
CWaldman wrote:
How can I retrieve the required height of a page to fit in my current
browser window's width such that I don't need the vertical scrollbar to
see the full contents of the page? In other words, I need the
document's height.
Furthermore, I need to figure out how to do this in IE6 w/o switching
to strict mode (so, the default IE6 mode = quirks).
Chad