Click here to Skip to main content
15,909,091 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
var win=window.open(url, '_blank');
  win.focus();

It is opening in new window,how to open in new tab
Posted

Why you don't use target property in the anchor tag?
Like this:
HTML
<a href="url" target="_blank">The Link</a>

The link will be opened in new tab.
 
Share this answer
 
v2
Comments
Member 10226004 30-May-14 7:18am    
i want it in anchor tag click function using jquery

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900