• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 577
  • Last Modified:

download option in HTML?

How can I make  .mp3 file donwload link in html?

<a href="audio.mp3">Click here to Download</a>
when i click on the link, the mp3 file just play in browser.

 <a href="audio.zip">Click here to Download</a>
when i zip a file it begin to download.

But i dont want to zip a file, how can i download mp3 files without zipping them?

Thanks.
0
shahzad198509
Asked:
shahzad198509
1 Solution
 
mrichmonCommented:
You can't control this.

It is up to each browser on how they have chosen to implement each file type - whether to download or open.  In my browser it downloads mp3 files.  In yours it does not.

You could put up instructions:
To download this file right click on the link and choose "Save As..."
0
 
shahzad198509Author Commented:
can i control this with php scripting language?
0
 
meenaxiCommented:
Your first coding itself is enough to download mp3.

<a href="audio.mp3">Click here to Download</a>

i checked with IE and Firefox
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now