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

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

document.documentElement.clientHeight returns the size for the Window


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?



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.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum