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

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -