Open email links in same window.

Member for

17 years

OK the Forum wont let me post HTML code as text. That makes it harder to show you the code.

I should have guessed.

I imagine if I PM you I’ll have the same problem.

If you want the code used in my previous message, PM me an email address and I’ll send you the code.



Cheers,



Dave.

Member for

17 years

The email that is sent is an HTML email that includes a link. Here is some of the code of the email sent to me:




The new message can be found at this location...





http://www.planningplanet.com/forum/forum_post.asp?Cat=3&Top=53391






The (for anchor) tag has various parameters. The ’href’ parameter tells it what URL to go to. Another optional parameter is called "target". This tells it where to display the result.

So let’s simplify our email link for clarity.

Let say we just had:

Click here to go to Planning Planet.

We could add the target parameter to make it replace anything that is already in the current browser with our new location:

Click here to go to Planning Planet.

We could also use a named frame-set just for Planning Planet like this:

Click here to go to Planning Planet.

The example above will open planning planet in the same frame-set every time. If the user doesn’t already have a frame-set called "PP" open then a new one will be created.



Hence if we were to change the forum link in the email from:

http://www.planningplanet.com/forum/forum_post.asp?Cat=3&Top=53391



to:

http://www.planningplanet.com/forum/forum_post.asp?Cat=3&Top=53391



Then when people click on the first email link in their In-box it will open a new browser window (frame-set actually). When they click on the next email link it will open it in the same browser window (frame-set actually).



I hope this clarifies things. Feel free to ask more questions if it does not.

Member for

16 years 9 months

Sounds like a good idea. However, our techie is stumped on this one (mind you it happens fairly often - just look at our site!).



Can you explain this in a little more detail please.



PP Admin Team