Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detecting scrollbars
Message
De
22/04/2002 06:36:39
 
 
À
19/04/2002 18:49:21
Information générale
Forum:
Internet
Catégorie:
Javascript
Divers
Thread ID:
00647124
Message ID:
00647474
Vues:
10
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform