How to Open a Links in New Window or Tab

Any webmaster don't like visitors to leave their site always.So,if we use links to open in new window,our problem will be solved.
We used targe="blank" to open the link in new page.
We can also use target="new" instead of target="_blank".Both are same.


Using HTML While Composing Blog Post

#Text Link
After inserting the link in compose mode normally, switch to Edit HTML mode and find the link you added.
Assuming you added a hyperlink as http://bloggerhelp24.blogspot.com with the anchor text being The BloggerHelp24, you should see this in Edit HTML mode:

<a href="http://bloggerhelp24.blogspot.com">The BloggerHelp24</a>
To make this very link open in a new browser tab, edit it to look like this:

<a href="http://bloggerhelp24.blogspot.com" target="_blank">The BloggerHelp24</a>
As you can see, you only need to add a space and the piece of code shown in red after the link in Edit HTML mode.

#Image Links

<a href="website URL" target="_blank" title="TITLE"><img src="Image URL" border="0" width="80" height="15" alt="Description"></a>
 
By Blogger Template Editing:

-Go to Design > Edit HTML
-Find this code:

<head>
-Right below it, paste this code:

<base target='_blank'/>
Now save your template. All links on your blog now opens in a new window/tab on blogger but we personally don’t like this method. We prefer the first one but the choice is actually yours.

Comments