Answer the question
In order to leave comments, you need to log in
Is there an event in javascript that sees that this particular part of the page is currently displayed in the browser?
Good afternoon. It is required to perform an action when the browser screen is on a certain part of the site page. For example, when you scroll on Habré to the heading - "MOST READ", the event fires and the function is executed. Is that possible ?
Thank you.
Answer the question
In order to leave comments, you need to log in
Watch the onscroll event, and when its Y coordinate is greater than the Y coordinate of the desired block, then we have scrolled.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question