faqts : Computers : Programming : Languages : JavaScript : Document

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

6 of 7 people (86%) answered Yes
Recently 6 of 7 people (86%) answered Yes

Entry

How do you get the ACTUAL size of a page.. not the clientHeight

Jan 28th, 2003 02:14
Klaus Bolwin, Simon Robertson,


I hope the following will help:

you can get the inner height of the window using:

iheight = (!document.all)?
window.innerHeight:document.documentElement.offsetHeight;

for Mozilla and MSIE.

the height of the document loaded into this window is:

document.body.scrollHeight

than, the scrollabel height is:

document.body.scrollHeight - iheight