
Signature
Martin Honnen
http://JavaScript.FAQTs.com/
>> Is there a way to obtain the window size from IE 6 when a DOCTYPE has
>> been specified on the page?
>
> If document.body.clientWidth/Height are what you are using with IE then
> with IE 6 in strict mode you want
> document.documentElement.clientWidth/Height.
Martin,
That seems to do the trick. Perverse that the IE folks persist in
calling this a property of the document rather than the window, but...
For anyone lurking, the values Martin provided correspond to the INNER
height and width of the window, i.e. the space available for display of
the document after accounting for scroll and tool bars, etc.
Many thanks,
Chris Beall
RobG - 27 Feb 2005 22:44 GMT
[...]
> For anyone lurking, the values Martin provided correspond to the INNER
> height and width of the window, i.e. the space available for display of
> the document after accounting for scroll and tool bars, etc.
For further information, you may want to follow the "viewport"
link here:
<URL:http://www.quirksmode.org/index.html>

Signature
Rob