I built a long page website, so I decide to build a sidebar to navigate user. I want to know which part my user is viewing, so I can change the sidebar css to active or hightlight.
Is there any js or jquery function I can use to get which part user is viewing?