Is there a way to automatically add a CSS class "highlight" to headlines or sections based on anchors such as "...this.html#headline1" (similar to the table of contents on Wikipedia)?
I am looking for a solution that will also work when navigating from a different page with a link like this: , and not just through onclick events like shown in this example: Highlight a # section in a page - jQuery