C
Chris Beall
OK, I know that for many browsers, window height and width can be
obtained from:
window.outerHeight and window.innerHeight
window.outerWidth and window.innerWidth
And I know that if those are undefined (meaning you are probably dealing
with IE), you can try:
document.body.clientHeight
document.body.clientWidth
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.outerHeight and window.innerHeight
window.outerWidth and window.innerWidth
And I know that if those are undefined (meaning you are probably dealing
with IE), you can try:
document.body.clientHeight
document.body.clientWidth
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