Skip to content Skip to sidebar Skip to footer

Detecting Browser Scrolling

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

Solution 1:

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

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

Post a Comment for "Detecting Browser Scrolling"