2

I have audio Element Here

<audio controls preload="metadata"> <source src="mp3FileName" type="audio/mpeg"> Your browser does not support the audio element. </audio> 

with source "mp3FileName" I have separate download button

<a class="btn btn-primary" href="mp3FileName" download>Download audio here</a> 

but when I click it it just opens _blank audio source just like that

audio when clicked download button

I want to instant download when button is clicked. how can it be done?

Thanks for answers and sorry Guys I forgot that it's written on VueJs Like That

<a class="btn btn-primary" :href="mp3FileName" download>Download audio here</a> 

reason why it is used :href is because "mp3FileName" is from Vue Scripts

4

1 Answer 1

-2
<video src="/wave-loop.mp4" autoplay="" muted="" loop="" class="fixed overlay object-cover pointer-events-none opacity-75 hidden md:block" 
Sign up to request clarification or add additional context in comments.

1 Comment

This does not provide an answer to the question. Once you have sufficient reputation you will be able to comment on any post; instead, provide answers that don't require clarification from the asker. - From Review

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.