"Boris Zbarsky" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> >>>> > sh=screen.availHeight;
> >>>> > sw=screen.availWidth;
> >>>> > ch=document.body.clientHeight;
> >>>> > cw=document.body.clientWidth;
> >>>> > if(!cw){ch=sh-132;cw=sw-8}
>
>
> ch = document.defaultView.
> getComputedStyle(document.body, "").getPropertyValue("height");
> cw = document.defaultView.
> getComputedStyle(document.body, "").getPropertyValue("width");
>
> Note that IE and mozilla have a difference of opinion as to how high the
> <body> element is for documents that are shorter than the viewport.
> In IE the body is never shorter than the viewport, while in Mozilla it
> always follows the content size.
I tried it and I got with Mozilla 0.9.6
javascript:alert(document.defaultView.getComputedStyle(document.body,
"").getPropertyValue("width"))
0px
and this is wrong.
--
Roland M�sl
http://pege.org Clear targets for a confused civilization
http://BeingFound.com Web Design starts at the search engine