I whipped up a demo. http://www.commadot.com/jquery/dimensions/windowsize.htm
Shows the different options. Click the links at the top. Glen On 7/13/07, Andy Matthews <[EMAIL PROTECTED]> wrote:
Sounds like you're actually wanting the width of the window, not of the page. ------------------------------ *From:* jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Geoffrey Knutzen *Sent:* Friday, July 13, 2007 11:13 AM *To:* jquery-en@googlegroups.com *Subject:* [jQuery] How to get the entire width of a page Seems simple. How do I calculate the entire width of a page, even when there are scroll bars? I am using the dimensions plug in ($("html").innerWidth(); $("html").width()); ($("body").innerWidth(); $("body").width()); ($(document).innerWidth(); $(document).width()); All seem to return the same number, at least in FF. But if there are horizontal scroll bars, they only return the width of the visible area, not the entire width of the page. How do I get the entire width of a page? Thanks