I am making some plugin and I need to get maximum scrollTop value of the document. Maximum scrollTop value is 2001 , but $(docum
scrollTop
2001
$(docum
The code in your comments should work:
$(document).height() - $(window).height()
Here's an example that alerts when you scroll to the maximum scroll position: http://jsfiddle.net/DWn7Z/