I am not sure if this post is better suited to Javascript forum or Java. So please let me know if I should send it to Java forum.
Hi
I have a JSP in which three links exist:
Code:
<a href="javascript:myFunc('<%= request.getContextPath()%>/myservlet?myVar=0')" > Option 0 </a>
<a href="javascript:myFunc('<%= request.getContextPath()%>/myservlet?myVar=1')"