I have an html web site. Here I need to write an <a >
tag to download a PDF file. See my code
<a href="brochure/brochure.pdf" target="_blank" ><img src="images/downloads.jpg" alt="Downloads" width="258" height="64" border="0" /></a>
But when i click on the download button, the pdf file will be opened.
I need to show the dialog box having save and open option as usual
Please reply me... Thanks
您实际上需要强制以PDF文件下载,尝试使用Content-Type:application / download并让我知道其是否有效
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.