How to make all links open in new window?


  Instead of viewing the other blog or web site in the same window, you open the other blog or web site in a new window. When your reader finishes viewing the other blog or web site, he / she simply closes the new window. The article that he or she was reading, in your blog, is right there in front of them. Instead of coding each individual link to a blog, picture, or web site, you can make all links within your blog open in a new window
To make all linksopen in new window is amazingly simple. Just sign into
DASHBOARD > DESIGN > EDIT HTML 
to open template editor


Use keyboard shortcut ctrl+F to find <head> and immediately after that, add a single line

<base target='_blank' />

Save the edited template and viola, all links in your blog will now open in new tabs or windows.

Note: Blogger is now XHTML so all tags must have matching closing tags or be self closing. The above tag is self closing because it has that forward slash / at the end of the tag.


Some bloggers may prefer some links not to open in new window/tab but to open in the same window, in such cases you can  add the attribute target="_self" for those links you want to open in the same window/tab.




0 comments:

Post a Comment

HITS >>

Free Hit Counters

Bloggers.com

Review this blog on Bloggers.com