I have a button in my website, download PDF file when I click on the button. How can I sen a PDF download option in my web page using JavaScript?
Apply this code.
Create a hidden iframe:
<iframe id="data_iframe" style="display:none;"></iframe>
JavaScript Code:
<script> function FileDownload(url) { document.getElementById('data_iframe').src = url; }; </script>
Username
Password
Remember Me
Lost your password?
Username or E-mail:
Log in