skip to Main Content

I have two hyperlinks <A Href="address1"... TARGET="info"> and <A Href="address2"... TARGET="info">
When I click the second one, it opens a new tab.
How can I have it opened in the same tab "info" ?

2

Answers


  1. Chosen as BEST ANSWER

    Sorry, I just noticed that links are open in a new tab only when they are from a window which was open by the Javascript open() function.

    The first <A Href="address1"... TARGET="info"> opens a new tab, but the second <A Href="address2"... TARGET="info"> should open the link in the same tab, not a new one. Even a second click on the same link opens a new tab. This happens with Firefox ans Chrome as well.

    If it is a question of security, I do not see the reason for.


  2. If you want to ensure that the link opens in the same window, you can use _self

    <a href="address2" target="_self">Link 1</a>
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search