How to open URL in new tab with HTML button and JavaScript

1 Answer

0 votes
<script>
   function openURL(url) {
          window.open(url);
   }
</script>
<button type="button" onclick="openURL('register.php')">Register</button>

 



answered Jun 6, 2017 by avibootz
...