I have an FAQ page. each question has an anchor link (<a name="faq1" class="anchor"></a>)
on the right hand-side i have a list of all the questions with a link to the anchor (<a href="#faq1">).
What i am trying to achieve is to highlight the question when its active. Meaning when the browser is at e.g. "page_name.html#faq5" the faq5 in the page is highlighted.
It took sometime for me to understand the logic.
Thank you so much for the in-depth example!