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
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?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.