I have the following dropdown menu how can i redirect each menu to corresponding page by clicking each of menu? is it possible by using one javascript function if yes how? thanks in advance...
<div>
<ul>
<li id=home onclick="show(this.id)"><a href="home.jsp">Home</a></li>
<li id=collection onclick="show(this.id)><a href="collection.jsp">Collection</a></li>
<ul>
<li id=men onclick="show(this.id)><a href="men.jsp">Men</a></li>
<li id=women onclick="show(this.id)><a href="women.jsp">Women</a></li>
</ul>
<li id=contact onclick="show(this.id)><a href="contact.jsp">Contact</a></li>
</ul>
</div>