Re scrollHeight: I simply want to check whether the total length of the scrollable area is greater than the scrollable area of the body element. I check the actual positions of everything later on.

Re scrollWidth: You're right, I should be doing that too.

Re overflow: Good point, I should check all those cases.