showing results for - "play audio on button click html"
Patience
26 Nov 2017
1var sound = new Audio("file.wav");
2
3button.addEventListener('click',()=>{
4	sound.currentTime = 0;
5	sound.play();
6});