Wednesday, 8 August 2007

A Techie Question - Links in a new window

Hello fellow bloggers!

I'm asking for your help once again. I'd like to set my blog up to open up links in a new window, so people don't leave my site.

Does anyone know how to do this using blogger? I assume I'll need to add some code to my template somewhere?


This Post was written by Julia from A Slice of Cherry Pie

2 comments:

Nick at The Tracing Paper said...

Hi Julia

I'm not sure about the Blogger specifics, but you would need to add a target="_blank" attribute to your link code. So your link html will look like this: a href="url for the link" target="_blank".

That said however, I'd advise against it! Personally, I find little more annoying than links opening in new windows and I once read that the navigation tool most used by web users is the back button - if they want to get back to your site, they will.

Nick

Julia said...

Hmm....that's something to think on, thanks Nick. It was someone else who suggested that I do this, but it's interesting to hear another perspective.