Click to See Complete Forum and Search --> : Document Height- Help Javascript Gurus


sanjayv
08-07-2003, 04:23 PM
Hi Javascript Gurus,

I need to specify the size of the left hand navigation bar dynamically based on the document size. I tried document.body.scrollHeight, but it does not give me the correct height of the document untill it is entirely loaded in the window.

Any idea how can I determine the document height before it gets displayed in the window so that I can adjust the height of the left menu accordingly.

Cheers
Sanjay

AdamBrill
08-07-2003, 05:30 PM
I don't know of a way to get that until the page has loaded... Couldn't you put run a function onload that would set up your menu? Or, better yet, use a menu that will work without having to place it with JS. ;)