I have a website where user can download pdf files automatically,its should not open in new tab .Its working fine in android devices but not in Iphone and Ipad.In iphone and Ipad its opning in new tab.
below is link of pdf files
<a href="example.pdf">download my files</a>
只需在<a>
标记中添加下载
<a href="example.pdf" download>download my files</a>
try this property download
for example
download my files
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.