Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Comparing scrollHeight with clientHeight
Message
De
26/03/2012 16:32:46
 
 
À
Tous
Information générale
Forum:
Javascript
Catégorie:
IFrame
Titre:
Comparing scrollHeight with clientHeight
Divers
Thread ID:
01539401
Message ID:
01539401
Vues:
88
I have the following code:
      if (loRoot.scrollHeight>loRoot.clientHeight)
      {
alert(loRoot.scrollHeight)
alert(loRoot.clientHeight)
         llVerticalScrollbar=true
      }
What I do not understand is that the alert box shows 942 for both values. So, if they are the same, how can the logic goes in the if condition? The condition states to only enter in the if condition if scrollHeight is greater than clientHeight.
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform