Click to See Complete Forum and Search --> : document/body total height
steve1
09-04-2003, 10:48 AM
i'm trying to put a footer in a web page. using the bottom propety doesn't work i get it at the bottom of the window. So i have to resolve it using JScript.
document.body.scrollHeight works in Gecko and IE 6.
It willl be interesting to have it working in previous versions of IE. Any idea?? A standard way to get it??
thank you.
gil davis
09-04-2003, 12:51 PM
I hate to sound stupid, but if the footer is the last thing in the file, wouldn't it be at the bottom of the document by default?
If you're talking about a footer that stays at the bottom of the open window always, regardless of the length of the page, have you thought of putting the footer info in a separate frame at the bottom of the page?
Just a thought,
TBor
steve1
09-04-2003, 05:28 PM
nothing sounds stupid.
you're are rigth y should put it at the end of the document. But i forgot to say i'm using layers(DIV) with absolute positioning. So how to get the total height of the page if the layers may have diferents heights depending were page you are??
About the frames. I want it at the end of the text document not the window.
thanks a lot.
Aronya1
09-05-2003, 04:29 PM
I think this might help: http://www.sitepoint.com/article/527