Does anyone know what I have to change to get a clicked link to open in a new browser window? Thanks!
Mar 4, 1999, 5:14 PM
User (63 posts)
Mar 4, 1999, 5:14 PM
Post #2 of 5
Views: 2419
I was gonna ask the same thing, but since you already asked I will just clarify it so maybe we can get some help
I have Links 2.0 installed and working, when they do a search the results come up within a frame on my site, but when people click on the links (results) the new page loads in the frame too. Is there a way to make the results stay within the frame, but when they click on a link (A result from a search) that the newsite they were looking for would open into a new window?
I have Links 2.0 installed and working, when they do a search the results come up within a frame on my site, but when people click on the links (results) the new page loads in the frame too. Is there a way to make the results stay within the frame, but when they click on a link (A result from a search) that the newsite they were looking for would open into a new window?
Mar 4, 1999, 6:10 PM
Enthusiast (832 posts)
Mar 4, 1999, 6:10 PM
Post #3 of 5
Views: 2429
I answered this question two days ago. I have also seen other people asking the same. I don't know if you did a search (this board is not good at returning search results).
Anyway, it's easy. Use target="_blank" forllowing the link, before closing the tag. You can do this either in the template or in site_html(template).pl
Anyway, it's easy. Use target="_blank" forllowing the link, before closing the tag. You can do this either in the template or in site_html(template).pl
Mar 4, 1999, 6:40 PM
User (289 posts)
Mar 4, 1999, 6:40 PM
Post #4 of 5
Views: 2409
Rick-
If you are using frames, you should modify ALL of your external links to include target="_top". This will make the link load in the full window and not your frame. This is instead of using target="_blank" which will open a whole new window.
You didn't mention if you are using templates or not, but if you are modify link.html as so:
Also, note that the "random" link will have to be changed on each page.
[This message has been edited by Brad Richardson (edited March 04, 1999).]
If you are using frames, you should modify ALL of your external links to include target="_top". This will make the link load in the full window and not your frame. This is instead of using target="_blank" which will open a whole new window.
You didn't mention if you are using templates or not, but if you are modify link.html as so:
Code:
<a class="link" href="<%db_cgi_url%>/jump.cgi?ID=<%ID%>" target="_top">Also, note that the "random" link will have to be changed on each page.
[This message has been edited by Brad Richardson (edited March 04, 1999).]