Jump to content

targetting specific tabs/windows


Errant_Shadow

Recommended Posts

I know how to name frames in a framset, and I know how to use the target attribute with my links, but what I can't seem to find is how to name my page so I don't open new windows when linking to it from outside pages, such as e-mail links.

 

Here's my exact problem. You go on my site and register an account. The server sends you an e-mail with a confirmation link that sends you back to my site, where the handling script it. Right now this operation will either overwrite your e-mail page, or open a whole new window. What I'd prefer, however, is the user to click the link and have it overwrite the window that has my site already opened in it.

 

My site is not using frames, so is this possible?

Link to comment
https://forums.phpfreaks.com/topic/169413-targetting-specific-tabswindows/
Share on other sites

I know you can open named windows if you give it a target that doesn't yet exist, and once you do, then all other calls to that target will refresh that window.

 

<a href="http://mysite.com/" target="myWindow@mySite">MySite.com</a>

(will open a new tab)

 

<A href="http://mysite.com/stuff.htm" target="myWindow@mySite">Stuff</a>

(will open the page "stuff.htm" in the same window as the link above)

 

But there's no other way to do that?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.