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

Posted by Lasantha Bandara File Under : html 7 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="https://www.facebook.com/" 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.

7 thoughts on “How To Set All Links Open in a New Window in Blogger

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.