HTML button open url in new window code example
Example 1: button open link in new tab
<button class="btn btn-success" onclick=" window.open('http://google.com','_blank')"> Google</button>
Example 2: onclick open new url html
<input type="button" value="button name" onclick="window.open('http://www.website.com/page')" />