Answers for "how to set the audioplayer attribute from javascript"

13

play audio in javascript

var audio = new Audio('audio_file.mp3');
audio.play();
Posted by: Guest on May-20-2020
0

create audio tag javascript

document.getElementById('song').innerHTML = '<audio id="audio-player" controls="controls" src="media/Blue Browne.mp3" type="audio/mpeg">';
Posted by: Guest on September-08-2021

Code answers related to "how to set the audioplayer attribute from javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language