Answers for "how to <audio>"

0

how to <audio>

<html>
<script>
    function play() {
        var audio = document.getElementById("audio")
        console.log("audio")
        audio.play()
    }
</script>
<audio id="audio">
    <source src="Audio File" type="audio/AudioFormat">
    Your browser does not support this audio element.
</audio>
<button onclick="play()">Audio</button>
<html>
Posted by: Guest on January-15-2022

Code answers related to "how to <audio>"

Browse Popular Code Answers by Language