[Greasemonkey] DOM question: figuring out how wide a page is
julien.couvreur at gmail.com
Fri Apr 29 14:28:54 EDT 2005
document.documentElement.scrollWidth seems to work!
I'm not exactly sure why it didn't work directly on document, but
anyways thanks a bunch.
On 4/29/05, Edward Lee <edilee at gmail.com> wrote:
> 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.
> Greasemonkey mailing list
> Greasemonkey at mozdev.org
More information about the Greasemonkey