Reputation: 22539
How can I know when the user has scroll on the screen?
Upvotes: 0
Views: 1250
Reputation: 1039498
You could subscribe for the window.onscroll event. Example:
window.onscroll = function() {
// the user scrolled the window
};
Upvotes: 7