Tuesday, February 06, 2007

How do I keep my page up even if people click links

Hi... still fairly new to all this and I'm still learning the flaws of what I'm doing ... have discovered that, when someone clicks a link I have on my (Typepad) site to another site, they're directed away from my site ... is there any way to keep my site up on their screen no matter what link they click? Hope this question makes sense?

This Post was written by Stephanie from Elegant Sufficiency


Silverbrow said...

Hi, what you're after is for a new window to open when someone clicks a link on your site.

However, there is a very strong school of thought on FBS, that I buy into that says you shouldn't do this. The main reason is that people don't like things happening to their browsers that they're not expecting.

The theory goes that if your content is compelling enough they will always return to it. Plus, with tabbed browsing becoming more common with Firefox and Internet Explorer 7, people can easily open a new tab themselves when clicking a link, and still keep your site up.

I'm a convert to this way of thinking. I used to force new windows to open up, now have stopped doing it.

That having been said, if you still want to do it you can include the following html around each link, this is the code you need: [A HREF="http://www.yourdomain.com" TARGET="_blank"]Your Text[/a] The relevant bit being the TARGET="_blank" and replace square brackets for < or >. I also think there's a way in Typepad of setting a default so that it always sets links to open in a new window. But I can't find it at the moment.

Stephanie said...

thank you! really interesting to hear your alternative view on this....

Scott at Real Epicurean said...

It's also worth noting that the "target" code mentioned above is being phased out, and is invalid for XHTML1.0 Strict.