Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Detect users position on web page

Let's say I have a single HTML page. 2000 pixels long for example. I want to detect if a visitor reaches a certain point on the page.

The page structure:

  • 0px = begin of the page;
  • 500px = about us page;
  • 1000px = contactpage;

Is there a way with jQuery to detect if a user reaches the points described above?

like image 664
Citizen SP Avatar asked Nov 17 '25 05:11

Citizen SP


1 Answers

You probably want jQuery's scroll event-binding function.

like image 196
Weston C Avatar answered Nov 19 '25 20:11

Weston C