How to make links open in new window or tab?

+1 vote

Hello,

I am facing some challenge- Lets consider I have a menu and under that I have 3 links-

About 

Contact Us 

FAQs

By default home page is About menu item. Now when I am clicking on "Contact Us" , I want to open a new tab on same browser window. And without closing this if again I am clinking on "Contact Us" from the first tab, this time I do not want to open new tab because I have already an open tab for Contact us, I just wanted to navigate to the same one which is earlier opened. How to handle this scenario.

Is there any way to do this. please help me.

Jan 16 in Web Development by anonymous
• 31,730 points

retagged Jan 17 by anonymous 54 views

1 answer to this question.

+1 vote

To create a new window or tab when a link is clicked, the target="_blank" attribute must be added to the a href tag, as shown below.

<a href="https://www.edureka.co/" target="_blank">Edureka</a>.

answered Jan 16 by Niraj