Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Feedback: irt.org FAQ Knowledge Base Q1575

Feedback on:
irt.org FAQ Knowledge Base Q1575

Sent by Louis Roehrs on November 20, 2001 at 23:40:09: - feedback #3342

Comments:
This is just plain wrong.

In netscape, innerHeight returns the height of the window.
document.body.clientHeight returns the length of the *document* in pixels, not the browser window height.




Sent by Matthijs on May 21, 2002 at 09:46:35: - feedback #3887

Worth:
Very worth reading

Comments:
the only thing is that it does not work in Netscape 6.02, i think because NS 6 doesn't onderstand the hieght thingy...

Any option to make it work in NS6?


Sent by Alexander Skwar on December 23, 2002 at 18:58:48: - feedback #4328

Worth:
Worth reading

Length:
Just right

Technical:
Just right

Comments:
The answer given is wrong. In IE (6), document.body.clientHeight does not return the same as window.innerHeight returns on Netscape >= 6.1.

window.innerHeight returns the height of the visible "HTML" area, whereas document.body.clientHeight returns the COMPLETE height of the client area. That's a big difference!

When the browser window is resized, so that only a few pixels of the client area is visible, IE will still return the complete height of the body. Mozilla on the other hand, returns just the height of what is visible.

I'm still searching for a way in IE to get the representation of window.innerHeight.



Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 21st December 2007. Maintained by: Martin Webb
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.