how to make button open in new tab html code example
Example 1: how to make links open in a new window
The short answer is: just add a target="_blank" attribute to your links (anchor tags).
<a href="https://www.thesitewizard.com/" target="_blank">thesitewizard.com</a>
Example 2: button open link in new tab
<button class="btn btn-success" onclick=" window.open('http://google.com','_blank')"> Google</button>