[Greasemonkey] DOM question: figuring out how wide a page is

Edward Lee edilee at gmail.com
Fri Apr 29 16:15:02 EDT 2005


On 4/29/05, Julien Couvreur <julien.couvreur at gmail.com> wrote:
> But still no luck with "how high and tall is the rendered document?".

Have you tried checking document.documentElement.(scroll|client)(Width|Height)?

I opened up a blank tab and made a really long line and it seemed like
both scroll/clientWidth increase and keep the same value even if you
scroll around. Same thing with adding abunch of lines.

-- 
Ed


More information about the Greasemonkey mailing list