Roland M�sl wrote:
>
> 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.
>
It's only wrong if the <body/> element has an intrinsic width of >0px.
This means that if everything within the <body/> is absolutely
positioned (as I seem to remember your site doing), then <body/> has no
intrinsic width and therefore 0px is the correct value.
Try
getComputedStyle(document.documentElement,"").getPropertyValue("width")
instead.
I just ran a test, and this correctly returns the width of the viewport
minus the scrollbar.
--J