Click to See Complete Forum and Search --> : keeping the visitor on your site when linking to other sites
palmertires
06-12-2005, 09:01 AM
What is the best way to keep a web visitor on your site when linking to external sites? I use links within the text on occasion and am wondering what is the best way to allow them to visit the other site, yet not lose them. I know they can use the back button, but this does not seem like the best option since they may spend some time and travel quite a few pages away from the source page for the link. I also am not sure about using frames, since there seem to be some legal issues surrounding that??? Thanks for input. ;)
the tree
06-12-2005, 09:10 AM
Check out this <a href="http://w3.org" target="_blank">other site</a>, and how it opens in a new window
palmertires
06-12-2005, 09:31 AM
Here is an example of the code I currently am using
<a href="http://w3.org" target="display" title="w3">link</a>
This does open the link in a new window, but if there is more than one link on a page, the new link will keep opening in the same window...it doesn't work smoothly. It seems if a new window is open in the background, the new link will open in that window, but generally stays in the background (not exactly what I want to have happening). Anyway, it's not consistent...sometimes the new window will open in the foreground.
Here is an example of a page with multiple links
page with mutiple links (http://www.home.earthlink.net/~aimeelmarshall/ideas.html)
I didn't change the code, yet, but am wondering what is the difference between "display", and what you have used, "_blank"?
palmertires
06-12-2005, 09:37 AM
:) Actually, my links page would be an easier example with less text to wade through...
links page (http://home.earthlink.net/~aimeelmarshall/links.html)
the tree
06-12-2005, 09:51 AM
The only reason "display" is working at all is because the browser doesn't recognise it as anything else. So it creates a new window, which it identifies as "display". That is also why it opens the next document in that window.http://www.w3.org/TR/REC-html40/present/frames.html#h-16.3.2
If any target attribute refers to an unknown frame F, the user agent should create a new window and frame, assign the name F to the frame, and load the resource designated by the element in the new frame.
NogDog
06-12-2005, 10:34 AM
Then again, you could give your visitors enough credit to assume they know how to use the Back button on their browser to get back to your site if they want to, instead of annoying them with unasked for new windows. If you feel you must open a link in a new window, have the courtesy to note this fact next to the link (or above a list of links).