Forum Moderators: open
Try compressing your window height to nothing in NN/FF. It will still show 150 (depending on what toolbars you're using.)
screen.availHeight would be great except that only measures the screen minus the taskbar. I need the VISIBLE space inside the browser window.
<HTML>
<HEAD><title>Foo # 67867545 </title>
<SCRIPT LANGUAGE="Javascript">
function init() {
var baseHeight;
if (window.innerHeight) { baseHeight= window.innerHeight + ' innerHeight'; }
else if (document.documentElement.offsetHeight) { baseHeight = document.documentElement.offsetHeight + ' offsetHeight'; }
else if (document.body) { baseHeight = document.body.clientHeight + ' clientHeight'; }
else { baseHeight = 1234; } // just so I know it's broken
alert(baseHeight);
}
</SCRIPT>
</HEAD>
<BODY onload="init();">
Test
</BODY>
</HTML>
EDIT: No, doesn't appear to work either. window.availHeight is undefined, and window.screen.availHeight returns the screen depth minus the scrollbars. In the actual page it's shoving my objects down below the bottom scrollbar.
Peter Paul Koch of quirksmode.org has done a hearty amount of research on the question, and posted a table of his results:
[quirksmode.org...]