PDA

View Full Version : pixels inside the browser


ShMiL
04-21-2003, 10:22 PM
Is there a way to determine the height of the page (minus bars and other stuff)
If the window is not maximized then the height is smaller...


window.innerHeight works for Netscape... I can't find the one for IE...
Please help.

Graeme Hackston
04-21-2003, 11:22 PM
document.body.clientHeight

or in strict mode

document.documentElement.clientHeight

ShMiL
04-21-2003, 11:58 PM
Graeme - thanks!
I tried: document.body.clientHeight
and always got 0....
Didn't know that strict has another way...
Thanks alot:thumbsup: