Forum Moderators: open

Message Too Old, No Replies

Detect horizontal scrollbars

For later emailed report to admin

         

JAB Creations

6:41 pm on Aug 11, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Is there a way to detect horizontal scrollbars? I guess that would be dynamic (requiring measuring the page versus the body's width perhaps?) Or is there a way to measure if a page's body width is greater then a static value (such as 800px)?

- John

garann

12:15 am on Aug 12, 2006 (gmt 0)

10+ Year Member



Hm. Could you create or use an element positioned to the right of everything else and get its offsetLeft property? I don't know of any way to actually check for the presence of scrollbars, but that might provide some clue...