Knowledge for the World

How to open a link in a new window (HTML)

  • by Zach (134)
  • 1 minute

When building a website, it's a good idea to open external links (e.g. in a new window so that users aren't directed away from your site.


Add the target="_blank" attribute to the a href tag. Opens Google in a new window