Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Comparing scrollHeight with clientHeight
Message
From
26/03/2012 16:32:46
 
 
To
All
General information
Forum:
Javascript
Category:
IFrame
Title:
Comparing scrollHeight with clientHeight
Miscellaneous
Thread ID:
01539401
Message ID:
01539401
Views:
90
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
Next
Reply
Map
View

Click here to load this message in the networking platform