How to Open Your Web Page Link in A New Browser Window or Tab

One of the questions I get asked the most is how to make a link open in a new window instead of replacing the current web page. It’s usually a good idea to open external links in a new window or tab so that your visitors don’t move away from your website. Even if they get distracted by following the external link, they will eventually get back to yours since it’s still open somewhere.

To make the link open in another window, you need to use the ‘target’ attribute on the anchor tag. Here is a basic anchor tag:

<a href="" >My Blog</a>

When someone clicks on the link above, the current web page will be replaced with my home page. To make my website open in another window, I need to use target=”_blank” in the anchor tag like this:

<a href="" target="_blank">My Blog</a>

There are other values I can use in the ‘target’ attribute, but since these other values are used mostly for frames, I’m not going to list them here. Frames are rarely a good idea and I don’t recommend them.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top