I am trying to create my own scroll bars. I have tried most of the jquery scrollbar plugins and none of them seem to work for me, so I decided to create my own. I have an overflow area with scrollable content. I can get the scrollbar to work if I am able to figure out the height of the scrollable content area. I have tried .scrollHeight() and the browser doesn’t even recognize it. The overflow area has a fixed position.
Share
scrollHeightis a property of a DOM object, not a function:Given this:
This yields 200:
For example: http://jsfiddle.net/ambiguous/u69kQ/2/ (run with the JavaScript console open).