• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 73
  • Last Modified:

How to open links in already opened tab/window in browsers

Hi,

I have a link on my html page as shown below.
<a href="http://www.oxforddictionaries.com/definition/english/Apple" target="_blank">Apple</a>

Open in new window

This link will open a dictionary site page showing the meaning of the word "Apple" on a new blank browser tab/window.

And I also have a second link on my html page as shown below.
<a href="http://www.oxforddictionaries.com/definition/english/Orange" target="_blank">Orange</a>

Open in new window

This second link will open another blank browser window and show the meaning of the word "Orange".

But, what I want to achieve is when the user click the second link, I want the link to open the dictionary site web page on the same tab which has already been opened when the user clicked the first link (Apple). I don't want the 20 (word) links on my web page to open 20 tabs/browser windows.
So, I tried to specify target something like "Orange - definition of literal in..." but because part of the URL has been changed (from Apple to Orange), I don't know how to make it work.

Please explain to me how to achieve this.

Thanks.
0
ZKM128
Asked:
ZKM128
1 Solution
 
Michael FowlerSolutions ConsultantCommented:
Name the target. This way you can reuse the window

<a href="http://www.oxforddictionaries.com/definition/english/Apple" target="def">Apple</a>
<a href="http://www.oxforddictionaries.com/definition/english/Orange" target="def">Orange</a>

Open in new window

new.html
0
 
ZKM128Author Commented:
Thank you very much. I didn't know I could use partial link target name.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now