L
L
lemonlimelike2018-07-14 02:09:25
JavaScript
lemonlimelike, 2018-07-14 02:09:25

How to track scroll changes?

How to track how many pixels the user has dropped on the page? How to apply offsetHeight? Create a method and write this property in it? And the method on what to hang up?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Kornilov, 2018-07-14
@lemonlimelike

onscroll = function(e) {
return console.log(window.scrollY)
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question