Page 1 of 1

Getting links to open in new window

Posted: Mon Aug 13, 2007 12:13 am
by rtaylor551
I am using a Serendipity blog that was part of my web package with Dotster.
I love it -- it's pretty easy to use but one annoying problem. When I add a link to another website, the new site comes up in the same window with my web address still in the address bar instead of the new site.
What I would like to do is have the link open in a new window.
Any ideas? I have a blogrolling blog on the site that does it, but the links I add myself do not and I cannot find the place to change the setting....
Thanks a bunch!

Re: Getting links to open in new window

Posted: Mon Aug 13, 2007 9:35 am
by garvinhicking
Hi!

You'll need to change the HTML code for your link to read:

Code: Select all

<a href="http://site.com" target="_blank">
to make it open in another window.

HOWEVER, remember that this is deprecated in recent XHTML specifications. They say, the user agent (the browser of your visitor) should decide how links are added. Your visitors should always have the choice where and how they should open windows. Most people prefer their links being opened in tabs, that's why browser manufcatures added the middle-mouse-click and ctrl-mouse-click to let visitors decide this behaviour.

Best regards,
Garvin

Posted: Mon Aug 13, 2007 2:09 pm
by rtaylor551
Thanks! I'll give it a try...