incearca codul urmator:
am citit aceasta chestie la adresa urmatoare:Cod:<html> <body> <script> function downloadme(x){ myTempWindow = window.open(x,’’,’left=10000,screenX=10000’); myTempWindow.document.execCommand(’SaveAs’,’null’,x); myTempWindow.close(); } </script> <a href=javascript:downloadme("/test.pdf");>Download this pdf</a> </body> </html>
FAQTs - Knowledge Base - View Entry - How can I force a File Download of a .pdf file with a hyperlink (bypassing Acrobat Reader)?



Răspunde cu citat