Garmaine Staff asked 2 years ago

I set up a registration system which requires clicking on a link in email to confirm/activate the account. It looks like:

$textContent .= "Dear John,\n\n
Thank you for registering with YourBusinessName. 
To complete registration click on the activation link:
<a href='' target='_blank'>activate</a>";

This works however when you click on the email link it always opens in a new browser tab (or window depending on preferences). This leaves a confusing extra, lame, window in a tab.

How do you make it either open in the original tab/window or perhaps open while simultaneously killing the original tab?