Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Update an opened tab when clicking different links

Using _blank in html I was able to open a new tab (page “B”) from a specific link in Page “A”, my ask is how can I make this opened new tab to be updated when clicking on another links in page “A” rather than opening new tabs ?

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Instead of using a _blank target, use a named target.

<a href="//google.com" target="myTarget">Google</a>
<a href="//mozilla.org" target="myTarget">Mozilla</a>

I would put this in a stack snippet, but it seems to block opening links in new tabs…So here’s a fiddle, I guess.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading