I am creating a personal web site and want to offer vistors the chance to download some of the music I have written. Currently I have a simple anchor tag that points to a mp3 object containing the sample. When clicked, the music is downloaded and starts playing (using whichever music software is installed). However, I want the visitor to have the chance to save the file to disk, which is not happening.
How do I get a download dialogue window to appear, prompting the user to either save the file to disk or to open it directly?
I would like this technique to also work with other objects such as Word documents or Excel spreadsheets – again, giving the user the chance to save to his hard disk rather than opening in the browser window…