Search code examples
javascriptquicktime

How to stop people having an mp3 play through quicktime


I send out a http link for an mp3 to people and when they click on it they are complaining that the file plays in quictime. Obviously they need to do 'right click' --> 'save target as' but is there a way to do this for them using javascript?


Solution

  • Can't be done using JavaScript. But there are many ways to do that using server side scripts. I only know classic asp: Response.AddHeader "content-disposition","attachment; filename=fname.ext"