Answers for "open new tab when clicking link html"

19

open page with html

<!DOCTYPE html>
## Code by Scratchy (Twitter @S_cratchy)
<html>
<body>

<a href="https://www.Google.com" target="_blank">Gooooooooogle!</a> 

</body>
</html>
Posted by: Guest on November-23-2019
3

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
3

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>
Posted by: Guest on August-02-2020
1

open new tab when clicking link html

<!-- add target="_blank" to open new tab when link is clicked [in HTML]-->
<a href="YourLink" target="_blank">YourText</a>
Posted by: Guest on January-07-2021
1

a tag open in new tab

<a href="#" target="_blank" rel="noopener noreferrer">Link</a>
Posted by: Guest on September-02-2020
-1

open link in new tab

<a href="The link of the page" target="_blank">Open page in new tab</a>
Posted by: Guest on October-17-2020

Code answers related to "open new tab when clicking link html"

Browse Popular Code Answers by Language