i have a link to a media file such as an mp3, and i want it to get downloaded when the user clicks on it, instead of just having the file get played. the page i have in min
In order to make that happen you need to send a header with Content-disposition: attachment; filename=fname.ext
header in your favorite language before sending the file.
Without knowing the specifics such as what language and what control you have over your server configuration I cannot give you more detailed instructions. You cannot do it with just html and javascript however.