How to make links open in new window or tab

+1 vote


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


Contact Us 


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, 2020 in Web Development by anonymous
• 37,520 points

retagged Jan 17, 2020 by anonymous 77 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="" target="_blank">Edureka</a>.

answered Jan 16, 2020 by Niraj