Javascript save as

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • colinod
    Contributor
    • Nov 2007
    • 347

    Javascript save as

    Is there a way of having an mp3 file save when you click on a button using javascript, i want to get rid of the need for a right click save as on my website?
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    You can force a download by setting the appropriate headers (Content-type, content-disposition, etc.). You don't need JavaScript for this task.

    Comment

    Working...