All about Blogging.Blogging Secrets and Tips made public by world acclaimed bloggers for the community of new bloggers.

How to edit HTML in Blogger for all Links to open in new window

If you compose your blog, as I do, with lots of links to other blogs & websites, you may make it convenient for your readers to view other blogs/websites and then return to your blog. Initially due to ignorance bloggers either do not know or forget to edit the HTML editor of their template and it is very tiring to mark each and every link to "Open in New Window". The bloggers will definitely like that Viewers/Visitors do not leave the page on their blog or site and come back to their site as less number of visitors use the back arrow to revisit blog or site when they are engaged to the link in the same window. Instead of viewing the other blog or website in the same window, the bloggers will like their visitors to open the other blog or website in a new window. When the reader finishes viewing the other blog or website, he/she simply close the new window and the article that he or she was reading, in the blog, is right there in front of them.
           
You can, similarly, do this with pictures. If you want your reader to view a picture, then return to the text in your article, you open the picture in a new window.

Instead of coding each individual link to a blog, picture, or website, you can make all links within your blog open in a new window. Simply add a "<base target='_blank' />" to your blog, in the header.

( Don't forget to take backup of your existing template before editing HTML code) .Backup download and upload template are available on the Blogger Dashboard.Find with Ctrl + F in the HTML editor

<head>

Immediately after <head> place the following code :
<base target='_blank' />

New Code will appear like : <head><base target='_blank' />


While the reader is on your blog, give them the choice of what to read at any time. If they click on a link to read some detail, let them read the detail. Then, they click either on the Back button, and return to where they left the previous article or if the reader is leaving your blog, to read another website for detail, should you keep your blog open in the current window, and open a new window for the new website.

Of course, if you have an insanely huge amount of links that you would like this way, maybe in a few link lists, you could host the link lists on another blog, and include the other blog in an iframe or maybe a series of posts linked to your public blog. Maybe including the iframe in your sidebar would work for you.

If You like the information - Share it on FacebookTwitter, and Google+ amongst your friends and circles.