HTML5 MP3 Player Support Product Page

Is there a way to add a download button to HTML MP3 Player?

Asked 14 Nov 2012 18:24:21
1
has this question
14 Nov 2012 18:24:21 Michael Lau posted:
I want to add a button so the visitor can download an mp3. How can this be incorporated?

Replies

Replied 15 Nov 2012 09:22:49
15 Nov 2012 09:22:49 Miroslav Zografski replied:
Hello Michael,

Maybe the best way currently to achieve this is to redirect the current page to the MP3 file.
Assuming that the MP3 file URL is : example.org/download/myMusic.mp3
here is how that could be achieved for a single static button:

<button name="download1" id="download1" class="dwButton" onclick="window.location.href='http://example.org/download/myMusic.mp3'">Download</button>


That is an example and it may not work out of the box. It's just a though.

Regards.

Reply to this topic