Click here to Skip to main content
15,896,541 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I just recently created a PDF file with external links that will open a PDF file.
But its not working for me, here's the example link :

javascript:void(window.open('http://sampleweb.com/files/sample.pdf'))

Note: This works fine when i'm accessing from a web page, not from a PDF file link.

Thanks!
Posted
Comments
Mohibur Rashid 2-Jul-14 5:56am    
PDF application block link sometime, make sure it is allowed in your application

1 solution

This will work, try this:

<script type="text/javascript">
function openPDF()
{
window.open('http://sampleweb.com/files/sample.pdf');
}
 
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