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.