How to make a link open in a new window in HTML
Here you’ll find out how to make a link open in a new window when clicked on your website.
-The standard link in HTML looks like this: <a href=”www.google.com”>Click Link to Google</a>
This opens the link in the same window that the current page is on.
This can be a hassle when you need to reference both sites at once.
-You can add code to make the link open in a new window.
-You want to add target=”_blank” at the end of the href= before the > (end tag)
-Here’s an example: <a href=”www.google.com” target=”_blank”>Link to Google in a New Window</a>
This will allow the link to open in a new window and the user may reference both windows at once.