So this is the simple code for the button to open a certain link
You can use the following.
window.open(
'https://google.com',
'_blank' // <- This is what makes it open in a new window.
);
in HTML
<button class="btn btn-success" onclick=" window.open('http://google.com','_blank')"> Google</button>
plunkr
Try this code.
<input type="button" value="Open Window"
onclick="window.open('http://www.google.com')">