making a abutton play audio on click html5 code example
Example: javascript play sound onclick
var audio = new Audio("soundfile.wav");
document.onclick = function() {
audio.play();
}
var audio = new Audio("soundfile.wav");
document.onclick = function() {
audio.play();
}