JSP JSTL <a href call Onclick Javascript function -
i have following code in jsp
<a href="<c:url value="mycontroller"> <c:param name="prod" value="${product.productno}"/> </c:url>">edit</a>
how can call javascript onclick function open popup window , pass parameters?
<script type="text/javascript"> function openpopup() { window.open('mycontroller','width=650, height=450'); } </script>
try this
<a href="javascript:{openpopup(\'parameter1\',\'parameter2\')}"></a>
Comments
Post a Comment