A quick (and hopefully simple) question: I need to start downloading the PDF file generated by the PHP file. I can do it:
<a href="download.php">Download</a>
but should i do it differently? Maybe Javascript? The above works, but the window displays "Loading ..." before starting the download. I would like to inform users that something is happening.
Ideas?
Note. I already have a code that sends a file from the server. It works great. This question is how best to call this script from the client.
Some sites automatically download downloads. How do they do it?
The problem with the direct URL is that with PHP script errors, it will replace the contents of the existing page, which I don't want.
javascript html download
cletus
source share