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

Posted by Lasantha Bandara on September 21st, 2015 File Under : html5 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.

File Under : html

Related Posts

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

  1. Amo ergo sum says:

    thanks!

  2. Andrew says:

    That works good thanks.

  3. KelseyA says:

    YOUR A LIFE SAVER!!!

Leave a Reply