$(window).scrollTop()

I have to start an action if the following selection returns True.

if ($(window).scrollTop() == $(document).height() – $(“footer”).height()) {

The problem is that it seems to be malfunctioning.

How can I indicate to execute the action when the user arrives at the footer?

Thanks a lot to those who will help me.

Read more here:: $(window).scrollTop()

Leave a Reply

Your email address will not be published. Required fields are marked *