Force to open “Save As…” popup open at text link click for PDF in HTML

后端 未结 18 1172
無奈伤痛
無奈伤痛 2020-11-22 10:28

I have some big size PDF catalogs at my website, and I need to link these as download. When I googled, I found such a thing noted below. It should open the \"Save As

18条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-22 11:03

    After the file name in the HTML code I add ?forcedownload=1

    This has been the simplest way for me to trigger a dialog box to save or download.

提交回复
热议问题