popUp new window open with new link

  <a style="padding:5px 8px;background-color:#00e64d;text-decoration:none;color:white" th:href="@{/admin/editProductInfo/{productid}(productid=${a1.productId})}" onclick="basicPopup(this.href);return false">

   Edit</a>


  <script type="text/javascript">

   function basicPopup(url) {

   popupWindow = window.open(url,'popUpWindow','height=600,width=900,left=50,top=50,resizable=no,scrollbars=no,toolbar=yes,menubar=no,location=no,directories=no, status=yes')

    }

   </script>

Comments