Jump to content
jamesadrian

allow download of mp3 file

Recommended Posts

My website is here: https://futurebeacon.com

On that front page source I have a code that looks like this:

<a href="https://www.futurebeacon.com/00Music/JA2.mp3" class = link_style1>More Music by James Adrian</a>

It sends the website visitor to this location:

https://www.futurebeacon.com/00Music/JA2.mp3

The music in the file JA2.mp3 immediately begins playing.  This is what I want it to do.

I am trying to also allow the visitor to download the file from the page that plays the music and I have been searchings for instructions to do that in such a way that the file does not play music but downloads the file.

All the instructions I have read would have me use the same code that I am currently using to play the music.  I can't see a difference.

Please tell me what I am missing.

Thank you for your help.

 

Jim Adrian

 

 

 

 

 

Share this post


Link to post
Share on other sites

dsonesuk,

Thank you for this link.

I am using html 5 and my browser is Safari 11.1.2 which is higher than 10.

The source code I am using is this:

 

<a href="https://www.futurebeacon.com/00Music/JA2.mp3 download>Download Music
<img src="https://www.futurebeacon.com/00Music/JA2.mp3"></a>
 

It is on my front page.  I does not work and "Download Music" does not get rendered for the visitor.

Can you help me find out what is going wrong?

Thank you for your help.

 

Jim Adrian

 

 

 

Share this post


Link to post
Share on other sites

You forgot a closing quote for the href attribute.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...