(Hope it is not a duplicate because I didn\'t find it when searching and googling)
I am trying to find how to detect in some fixed-height div (\'#div\') when the scroll-
The height of the document is not necessarily the same as the height of the window. If you have a simple document with just a DIV and a little bit of text, the doc height will be miniscule compared to the height of the window.