How to open a new jsp page with JavaScript
<p>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...</p>

<pre><code>&lt;div&gt;
 &lt;ul&gt;
  &lt;li id=home onclick="show(this.id)"&gt;&lt;a href="home.jsp"&gt;Home&lt;/a&gt;&lt;/li&gt;
  &lt;li id=collection onclick="show(this.id)&gt;&lt;a href="collection.jsp"&gt;Collection&lt;/a&gt;&lt;/li&gt;
     &lt;ul&gt;
       &lt;li id=men onclick="show(this.id)&gt;&lt;a href="men.jsp"&gt;Men&lt;/a&gt;&lt;/li&gt;
       &lt;li id=women onclick="show(this.id)&gt;&lt;a href="women.jsp"&gt;Women&lt;/a&gt;&lt;/li&gt;
     &lt;/ul&gt;
  &lt;li id=contact onclick="show(this.id)&gt;&lt;a href="contact.jsp"&gt;Contact&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
</code></pre>
