Answers for "how to make a link open in a new tab in html in a button"

6

button open link in new tab

<button class="btn btn-success" onclick=" window.open('http://google.com','_blank')"> Google</button>
Posted by: Guest on May-25-2021
1

how to make a link open in new tab html

<a href="URL" target="_blank">Click here to go to my link</a>
<!--The A tags are for hyper links, href stands for hypertext reference
target="_blank" opens link in a new tab-->
Posted by: Guest on March-04-2021

Code answers related to "how to make a link open in a new tab in html in a button"

Browse Popular Code Answers by Language