Skip to content

24 ways to impress your friends

Vote up?

Kim Siever

Another option, in case you don’t want to add classes to your links, is to use JavaScript to determine the URL and then add a “selected” class to the corresponding link.

This is especially useful if you have a website where the menu appears by SSI on several hundred (or thousand) pages.