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>
尝试这个
<a href="javaScript:{openPopUp(\'parameter1\',\'parameter2\')}"></a>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.