Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detecting scrollbars
Message
From
22/04/2002 06:36:39
 
 
To
19/04/2002 18:49:21
General information
Forum:
Internet
Category:
Javascript
Miscellaneous
Thread ID:
00647124
Message ID:
00647474
Views:
9
>How can I detect if a scrollbars are present within a page? I tried the following but that doesn't seem to work:
>
>
>if (window.scrollbars)
>{
>   alert('scrollbars exist')
>}
>else
>{
>   alert('scrollbars do not exist')
>}
>
The body of the document has a property specifying scroll bars on/off according to
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/objects/body.asp

window.document.body.scroll
Len Speed
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform