Friday, June 19, 2009

How To Open Links In New Window or Tab

How to open links in new windows or tabs?

Usually when one clicks on a link, the window will be directed to the link. However, if you want your blog to stay when your visitors do so, add this extra line to the <a> tag:

target="_new" or target="_blank"

Example:

<a href="http://simple-blogger-tips.blogspot.com" target="_blank">VISIT!</a>

In Firefox, both of these lines will open a new tab. It might differ depends on the web browser you're using.

7 comments:

Qian said...

Hey thanks for the tips. =)

Dr Faustus said...

Sorry, but could you be more precise about where I have to place that line? Maybe show me what is above and below it?

Thank you in advance.

Blessed Flower said...

Thanks for this! I use it now :)

Silver MLM said...

Why does my browser open in a new window when I try to open a link in a new tab?

Simple Blogger Tips said...

@Silver MLM:
It depends on the browser you're using. Which one are you using?

Jack said...

Oh my gossh!
This is it?
I never thought it was this simple.
lol

Thanks man.
This is very useful.

Hannah Tan said...

Sorry..can you be more precise...i am using google chrome

Related Posts Plugin for WordPress, Blogger...
Follow Me on Twitter