Reputation: 14741
I have the following code in JSP
<a href="<c:url value="mycontroller">
<c:param name="prod" value="${product.productNo}"/>
</c:url>">Edit</a>
How can I call a Javascript onClick function to open a popup window and pass parameters?
<script type="text/javascript">
function openPopUp() {
window.open('mycontroller','width=650, height=450');
}
</script>
Upvotes: 0
Views: 7811
Reputation: 40358
try this
<a href="javaScript:{openPopUp(\'parameter1\',\'parameter2\')}"></a>
Upvotes: 1