Forum Moderators: open

Message Too Old, No Replies

Looking for a way to open link in new window

         

castlesintheair

5:14 am on Feb 24, 2003 (gmt 0)

10+ Year Member



open someones elses link from my page but staying on my site. How would I do this. I have a link to another site on my page, when someone clicks on it I want them to stay on my site...not just open the new page in a new window. Thanks

tedster

5:31 am on Feb 24, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm not clear on the question. Are you thinking of something like framing the other site in your own frameset? Or loading it into your page in an iframe?

hakre

5:32 am on Feb 24, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



hi castlesintheair, welcome to webmasterworld.

this is done with the target attribute in the a tag:

<a href="[i]url[/i]" target="_blank">link ... text</a>

user

target="_blank"
for this.

mavherick

5:39 am on Feb 24, 2003 (gmt 0)

10+ Year Member



You could frame them, but I would not consider this good practice, but that's just my opinion.

tedster

5:46 am on Feb 24, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I want them to stay on my site...not just open the new page in a new window.

That's the part that I don't really get. It sounds like you don't want a simple target="_blank" behavior, but what is it that you DO want to happen I can't figure.

castlesintheair

5:52 am on Feb 24, 2003 (gmt 0)

10+ Year Member



I don't know anything about frames except that I do not want to use them. But what I'm looking fois this...
I have someones link on my page they sell something. If someone buys thieir product from my page I get a referral fee, I have their form on my site. So when someone visits thier link I want them to stay on my site, not go to theirs with their form. I have seen pages that when I clicked on a link the new page appears in the text of the page I was visiting. I wasn't dreaming this was I. is it a frame thing. Thanks

Marcia

5:59 am on Feb 24, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It is a frames thing, though it doesn't appear to be. It uses 0,* for a frameset and brings up the company's page in the * part, so it appears as though it's on the site the visitor is currently on, even though it's being accessed through the frameset. It's often and easily done on affiliate sites.