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

Making A Tab Open Without Closing The Actual Tab

I’m a small developer. I like HTML. However, when i create a link in the website and click it, it closes the first tab and opens a new one. Here is the code that i wrote:

<a href="google.com">Google</a>    

Can someone help me and make it so that when i press the link it opens a new tab and it doesn’t close the actual tab? Thank you for helping me.

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

>Solution :

Hi this is the automatic function of this tag, as it is supposed to replace the current website and open the next one, as you may notice happens with links on other webpages, if you want the link to open in a new tab us the target attribute (which I saw was in another answer, but with less explanation) and set it to _blank like below.

<a href="google.com" target="_blank">Google</a>
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