Tag: window.scrollY

  • Trigger Click after Scroll

    Trigger Click after Scroll

    Ah, triggering an event after scrolling a certain distance down the page is a pretty common task. You can use the window.scrollY and document.documentElement.scrollHeight properties along with the scroll event to achieve this in JavaScript.