[front end] how to click on an element to download the specified file.

1, need to keep the current page url unchanged;
2, pictures, html and other format files are not opened in the browser but prompted to save to the local hard disk;
3, compatible with the possibility of mobile and matters needing attention.

I hope you can give me your advice.

I learned that browsers decide how to handle different resources based on the content of the http response. Are there any detailed tutorials / blogs / wikis?

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1befc7c-46ce8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1befc7c-46ce8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?