Forum Moderators: phranque

Message Too Old, No Replies

Open Links in a Section of the Website in a Seperate Window

         

jgold454

11:11 pm on Oct 11, 2005 (gmt 0)

10+ Year Member



I am trying to get a certain section of my site to open links in a new browser. I don't want to do it for the whole page but just for certain javascript based product feeds...Anyone know how to do this?

bill

5:27 am on Oct 12, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Just set a different target for those links in the code.
<a href="http://example.com" target="_blank">link text</a>

jgold454

2:00 pm on Oct 12, 2005 (gmt 0)

10+ Year Member



I can't do that because this is javascript tag, kind of like adsense, that displays a list of products based on the content of that site. So I don't get direct access to that <a href> code..I was hoping there might be some of javascript code to specify this for a section of code on a site...

bill

12:47 am on Oct 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Then try setting the BASE element [w3.org]'s target attribute in the page's header and manually set all the other links to _self in the body.