SuperString
SuperString

Reputation: 22539

detecting browser scrolling

How can I know when the user has scroll on the screen?

Upvotes: 0

Views: 1250

Answers (1)

Darin Dimitrov
Darin Dimitrov

Reputation: 1039498

You could subscribe for the window.onscroll event. Example:

window.onscroll = function() {
    // the user scrolled the window
};

Upvotes: 7

Related Questions