1<a href="your link" target="_blank">The home page will open in another tab.</a>
2
3<!-- Put target="_blank" as shown -->
1<!-- Use the target="_blank" attribute to open a link in a new tab -->
2<a href="link" target="_blank">This link is in a new tab.</a>
1document.querySelector("#username").addEventListener('click', function() {
2 setTimeout(function() {
3 let username = document.querySelector('#username').value;
4 window.open("https://www.github.com/" + username, "_blank");
5 }, 2000);
6}