SyntaxFix
Write A Post
Hire A Developer
Questions
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