Gossamer Forum
Home : Products : Links 2.0 : Discussions :

How to open link in new window

Quote Reply
How to open link in new window
Hi. I set up the script and everything is working fine. Does anyone know how to get the links in the database to open in a new window? I tried putting the target="_new" everywhere that seemed appropriate but none of it worked. That way I won't lose my visitors. Please let me know.

Thanks
Quote Reply
Re: How to open link in new window In reply to
Uh...yea...To open a new window, use the following codes:

Code:
<a href="link.html" target="_new">Link</a>

Change link.html to the URL that you are linking to.

Regards.

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------


Quote Reply
Re: How to open link in new window In reply to
Thanks. It worked great!!
Quote Reply
Re: How to open link in new window In reply to
Where would I insert the changes in my links.html or in one of the cgi files? I want to open new windows for my links.
Quote Reply
Re: How to open link in new window In reply to
I actually just changed the first part of the link.html template to read:

<ul><li><a target="_blank" class="link" href="<%db_cgi_url%>/jump.cgi?ID=<%ID%>"><%Title%></a>

The "_new" wasn't working so I used "_blank" instead and it's worked perfectly.
Quote Reply
Re: How to open link in new window In reply to
You SHOULD not use _blank because it will open a bunch of new windows rather than one.

For example, this forum uses _blank for the target window....

See what happens when you click on each of the links below without closing the new windows:

www.anthrotech.com
www.yahoo.com
www.netscape.com
www.widgetz.com

See....all those windows! That is intensive on the client side and their systems will end up crashing, thus blaming your site, and they most likely will not return.

Wink

Regards.

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------


Quote Reply
Re: How to open link in new window In reply to
Thanks for telling me. I changed it and it works!

When I tried it before I was using the Staggered (Auto) to build the pages. I think that wasn't updating them properly. Sometimes after I added categories and built the pages I would click on the category link I would get a message that the page wasn't found. Even after retrying I would get the same results. I use the Build All option and all the pages were created properly.

That may have been why "_new" wasn't working before.
Quote Reply
Re: How to open link in new window In reply to
Good...Any time that you make changes to the major template files, you should always use BUILD ALL, or re-build your complete index via telnet.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------