Are there alternative ways to implementing an "active link" navigation without using server side languages?

Posted by Mel on Stack Overflow See other posts from Stack Overflow or by Mel
Published on 2010-12-26T19:33:39Z Indexed on 2010/12/26 19:53 UTC
Read the original article Hit count: 133

Filed under:
|

By "active" I mean to have the link pointing to the current page classed as "active." This way the link's appearance can be modified using css.

Is it possible to implement an active link navigation without using a server side language? I would like to only use CSS/HTML/jQuery if possible. If there are, what are those methods? Assuming you want to create the following structure:

<ul id="nav">
   <li class="active">Home</li>
   <li>About</li>
   <li>Contact</li>
</ul>

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about html