OK, I know that for many browsers, window height and width can be
obtained from:
window.outerHei ght and window.innerHei ght
window.outerWid th and window.innerWid th
And I know that if those are undefined (meaning you are probably dealing
with IE), you can try:
document.body.c lientHeight
document.body.c lientWidth
But I've determined that those work only if IE is old or in quirks mode.
For IE 6 with a proper DOCTYPE defined, the values reported are exactly
what they say they are: the height and width of the DOCUMENT, regardless
of the window size.
Is there a way to obtain the window size from IE 6 when a DOCTYPE has
been specified on the page?
Thanks,
Chris Beall
obtained from:
window.outerHei ght and window.innerHei ght
window.outerWid th and window.innerWid th
And I know that if those are undefined (meaning you are probably dealing
with IE), you can try:
document.body.c lientHeight
document.body.c lientWidth
But I've determined that those work only if IE is old or in quirks mode.
For IE 6 with a proper DOCTYPE defined, the values reported are exactly
what they say they are: the height and width of the DOCUMENT, regardless
of the window size.
Is there a way to obtain the window size from IE 6 when a DOCTYPE has
been specified on the page?
Thanks,
Chris Beall
Comment