How to get the maximum position of the scrollbar on the Y-coordinate?

The question was asked: 6 years 9 months ago   views: 5
0

How to get the maximum position of the scrollbar on the Y-coordinate?

It somehow gives at 600-700px (depends on browser) more:

 var scrollHeight = document.documentElement.scrollHeight;

Well really nobody knows !? =)

Well, if it is difficult to answer, I will try to reformulate the question. How to determine what the page is scrolled, ie the user has scrolled all the scroll now to the bottom of the page?

Asked: Free_man Free_man 19-06-2012 в 21:35:47
Help me somebody! - Free_man Free_man 21-06-2012 в 14:14:48

Answers   1

0

Maybe this link will help?

Generally receive scrollTop + window.innerHeight and compare with the document.if clientHeight >= then the idea in the end. In the syntax window, document could be wrong, if you follow links to it methods sure.

Answered: Чад Чад 21-06-2012 в 15:58:50