...

View Full Version : document.documentElement.clientHeight VS document.body.clientHeight



otnj2ee
07-16-2007, 08:27 PM
In IE v6, for the strict mode,

document.documentElement.clientHeight returns the size for the Window

while

document.body.clientHeight returns the size for the Document


1)What is the difference between this window and the document? Does the Window count in the top menu bar and the bottom status bar while the Document does not?

2) How should I understand this clientHeight? Does it indicate the available viewing area of the browser window? or else?


Thanks


Scott

_Aerospace_Eng_
07-16-2007, 08:48 PM
It depends on the how the document is setup. In quirks mode or standards compliant mode. I think this should explain it all.
http://www.softcomplex.com/docs/get_window_size_and_scrollbar_position.html



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum