I am getting server side URL to my HTML,on click of that URL PDF file is opening in browser itself,Since the PDF is larger Size I want to force the user to download it(saveas pop up) Please help me
You don't need javascript to do this. In a modern browser you can simply do <a href="somepathto.pdf" download="filename">
Related post:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With