15 January 2009

make links open in new tab/window

Since I don't have a decent painting to post, I'll give you a blogging lesson to make links open in a new window. (I thank my son for teaching me!)

For blogger users, you type your posts in the 'compose' box. You make a link by highlighting a word or phrase, and click the 'link' tab in the tool bar. But this makes a link that navigates away from your blog. You want your audience to stick around a bit longer! If your readers are clever, they will right click to open links in a new tab or window. But you can easily alter your links yourself.

There is a tab for 'edit html.' Look through the text and find the area where your link is located. It will look like this:

<a href="http://emptyeasel.com/">Empty Easel</a>

Add the following code between the quotation mark and the greater than symbol.

target="_blank"

Add a space before the word target.
Now it looks like:

<a href="http://emptyeasel.com/" target="_blank">Empty Easel</a>

That's it, Fort Pitt.

27 comments:

Diana Moses Botkin said...

Wow, thanks Dar. I hope I remember to try this sometime!

Debbie said...

Dar, thanks for the lesson, I had looked up things like this in blogger help, but also needed my son's help to figure it out!

Susan Carlin said...

Excellent! Thank you!

Dar Presto said...

I'm so glad to share this. If any part of my explanation is cloudy, just ask and I'll try to clarify.

http://www.onpainting.wordpress.com said...

Dar - time is slipping by - grab that brush.

Marian Fortunati said...

You know I read this post the last time I visited your blog and .... (sorry) didn't get it.

Now that I've re-read it... the lightbulb thing happened. WHAT A GREAT IDEA!!...

Now I'm going to have to try it... Sheesh... all these new things to learn... WHERE will all that knowledge go??? ;o)

THANKS!

Dar Presto said...

Marian, my head is full of useless trivia and song lyrics. There isn't room for many new things. That's why I raised really smart children. They are my external hard drive.

Bill... I'm snowed under? I had a root canal? I'm a complete loser?
Which is the best excuse?

Marian Fortunati said...

You are TOO COOL!!

I tried this on today's post and it seems to be working!! THANKS SO MUCH.

http://www.onpainting.wordpress.com said...

Dar - did your son leave a virus on your computer? Where are the posts?

claorpleozs said...

http://gamesufo.blogspot.com
thank you

prajwal said...

that was something i was searching for.Your blog is very informative.

Renata said...

Thank you! This post was very helpful!

Jeff Syiru said...

thanks, you just helped me with my new template... thanks a lot.

Luna said...

Thank you so much :) This really helped! :D

Anonymous said...

Thank you:) works perfectly:)

20/20 said...

Super! Thanx

Techpraveen said...

Grt Tip....Thx a lot Dar Presto
For,
Computer Tips & Tricks
http://www.techpraveen.com

BUY said...

Thank u very much for this useful post ,was wondering how to do this.

HGB said...

Can we do it globally instead of writing in each link? Thanks

html_editor said...

nice blog...

Kathy said...

So simple yet so helpful. Thanks!

The Good Luck Duck said...

Thanks! Useful.

Maiz Connolly said...

Well, that was easy! Thanks for your clear explanation.

Anonymous said...

Awesome! thanks!!!

lastri said...

i tried to open some links in the same window ......this article below shows how to do this..........check it if any one wants

http://muftpakistan.blogspot.com/2011/07/how-to-make-each-link-open-in-new-tab.html

Dar Presto said...

Thanks for the link, lastri. I tested it. Those instructions do work to make all links open in new tabs. Caution, it functions for all links, including 'home,' 'older posts,' and clicking to view images.

ललितालालितः said...

Thank you.
Just learned and applied.