Hi, I am writing a DHTML application which uses AJAX to show dialogue windows etc.. (all the bells and whistles).
When I display a DHTML dialogue in the foreground, I use JS to create a div which is a "layer" in between the foreground and the background which essentially "darkens" the background and disables all background functionality. Forcing the user to take action in the dialogue.
Here is my problem:
How do I get the total scrollable area of the page so I know how big to make the "dark" div?
I have tried all of these:
document.body.scrollWidth
document.body.scrollHeight
document.body.offsetWidth
document.body.offsetHeight
window.innerWidth
window.innerHeight
document.documentElement.clientWidth
document.documentElement.clientHeight
document.body.clientWidth
document.body.clientHeight
window.pageYOffset
window.pageXOffset
document.body.scrollTop
document.body.scrollLeft
document.documentElement.scrollTop
document.documentElement.scrollLeft
They all work in one browser or another, (I am testing in IE, FF and Opera) but none of them give me the correct values for the exact scrollable area of the page.
does anyone have any ideas?
has anyone done this before?