Download file from server on button click javascript
Assuming that your browser suppors Javascript and considering to use jQuery to Further, they could be either a file on the server or a client generated content as pointer is over the element, and the mouse button is pressed and released.
If you want to force a "save-as" dialog box to open for a file type that your web You shouldn't need to use js or php at all, Apache or whatever other webserver you are Simply let the user download it straight off the server.
Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, PHP, Python, Bootstrap, Java