Click here to Skip to main content
15,902,636 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi guys,

i need to reduce the window size which will be look like pop up so i have to change this .help me for this

$('#popupTable').append('<tr class="Action"><td><a href ="' + data[i].DocLink + '" target="_blank">View This Document </a></td></tr>');


What I have tried:

browser window look like popup
Posted
Updated 5-Jan-17 1:14am
Comments
ZurdoDev 5-Jan-17 7:10am    
You can use window.open. http://www.w3schools.com/jsref/met_win_open.asp

1 solution

For that, you will need some help from some inline JavaScript like this:
<a href="" target="mypopup" onclick="window.open('http://www.w3schools.com','mypopup','width=600,height=600'); return false;">Pop up w3Schools</a>

See demo at JSFiddle[^]
 
Share this answer
 

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