I will really appreciate you if you can help me with your answer. Please, answer with only JavaScript, but not with jQuery.
HTML code:
<li><a class="menu" href="#">Personnel</a>
<ul>
<li><a href="about.html">About</a></li>
<li><a href="blog.html">Blog</a></li>
</ul>
</li>
<li><a class="menu" href="#">Experience</a>
<ul>
<li><a href="http://stackoverflow.com/">Stack</a></li>
<li><a href="http://odesk.com/">Odesk</a></li>
</ul>
</li>
JavaScript Task:
var url=window.location.href;
If my browser is now in "about.html" page . So url="about.html". At that time I want to change the class "menu" of anchor tag "Personnel" to class "active".
Else if my browser is now in "help.html" page. So url="help.html". At that time I want to change the class "menu" of anchor tag "Experience" to class "active".