Is there a way to force the user to download a file from a href link rather than to open it in a browser window?

前端 未结 5 2066
灰色年华
灰色年华 2020-12-11 07:47

Basically I wrote a script that generates a xml file based on user input. After the file is generated a download link appears like so:



        
5条回答
  •  误落风尘
    2020-12-11 08:11

    It depends on what the client computer does with XML files. If you doubleclick on a XML file, it will open in your browser probably.

提交回复
热议问题