How To Set All Links Open in a New Window in Blogger

Posted by Lasantha Bandara on September 21st, 2015 File Under : html6 Comments

The HTML target attribute specifies where to open the linked document. If we want to open a link in a new window or tab, we can use the HTML target attribute like this on each link:

<a href="" target="_blank">Visit Facebook</a>

But if you like to set all the links of your site open in a new window, follow the simple steps below.

1.Go to "Edit HTML" page page of your blog.

2.Now copy below code and paste it just after the <head> tag :

<base target='_blank'/>

4.Save your blogger template.

5.Now all the links of your site (blog post links,link list widget links,...) will open in a new window/new tab. You do not want to add target="_blank" to each of your link separately.

This works not only on Blogger, but also on other websites.

File Under : html

6 Responses to “How To Set All Links Open in a New Window in Blogger”

  1. Amo ergo sum says:


  2. Andrew says:

    That works good thanks.

  3. KK says:


  4. KelseyA says:


  5. Suzann says:

    Thank you!

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.