Click here to Skip to main content
15,891,657 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am trying below code
<input type="button" value="View CSA" class="BlackButton" id="btnViewSave" onclick="window.open('../../images/Barcode1234.pdf')" />

but it open pdffile in new tab but i want to open file in new window so any editnig in my code please tell me......



thank you.......
Posted

1 solution

HTML
<a class="BlackButton" id="btnViewSave" href="~/images/Barcode1234.pdf" target="blank">View CSA</a>
 
Share this answer
 
Comments
bhavesh002 6-Dec-12 7:35am    
its open full window how can i give size of open new window
[no name] 6-Dec-12 8:24am    
link doesn't provide any mechanism for that.. :)

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