Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detecting scrollbars
Message
Information générale
Forum:
Internet
Catégorie:
Javascript
Divers
Thread ID:
00647124
Message ID:
00647144
Vues:
20
>>>Not tested, but must work:
>>>
>>>Test the document.body.scroll property to know if scrollbar are on or off
>>>and, if on, compare the document.body.scrollHeight (visible area)
>>>with the document.body.clientHeight (window or frame height).
>>
>>It doesn't work when the window has been created with window.open(). That's the only think I can see.
>
>Can you explain a bit more what you are trying to do?

With a window that is created with window.open(), I need to know, within the script of that new window, if a scrollbars is present.

So, from this window for example, I may use the Tools menu to select the color. The color window has been launched with window.open(). That new window runs a script to center itself and stuff like that. From that script, I need to know it.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform