Click here to Skip to main content
15,907,326 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi guys i struggle this part
 
 when i clicking my table row url i need to open another window .i have given my code can you please send correct syntax please help for this
 
$('#popupTable').append('<tr class="Action"><td><a href ="' + data[i].DocLink + '">View This Document </a></td></tr>'); 


What I have tried:

i tried different ways but i am not getting my solution .Please help me for this
Posted
Updated 4-Jan-17 23:51pm

1 solution

If you want to open a link on a new window or tab then you need to add a target="_blank" attribute to the tag, e.g.
<a href="http://www.w3schools.com/" target="_blank">Visit W3Schools!</a>

find out more http://www.w3schools.com/html/html_links.asp
 
Share this answer
 
Comments
Member 11183217 5-Jan-17 5:57am    
thanks peter got it

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