Click here to Skip to main content
15,901,426 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hey All!!

Website Issue:
I click on a link within the original tab and it opens another tab(tab1). Click on a link in tab1 and it opens up another tab(tab2).

End goal:
Have have links open within the original tab that way users of the site wont be flooded with loads of tabs.

How do I get to this goal? Do I disable/delete something within the JS or HTML code?

Thank ya :)

What I have tried:

Looking at various forum and tutorial sites. Cant figure it out.
Posted
Updated 28-Feb-23 15:33pm

Read the documentation on the A tag, here[^]. You're looking for the target attribute.

Unless specified with a different value, the default is "_self", which will open the link in the same tab the link was clicked in.
 
Share this answer
 
Comments
MekaC 1-Mar-23 9:07am    
Thank ya so very much Sir this is exactly what I was looking for :)
Thank ya so very much Sir this is exactly what I was looking for :)
 
Share this answer
 
Comments
Richard Deeming 1-Mar-23 4:24am    
If you want to reply to a solution, click the "Have a Question or Comment?" button under that solution and post a comment.

Do not post your comment as another "solution" to your question.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900