Answers for "how to play sound on load js"

2

how to play sound on load js

var sample = document.getElementById("foobar");
sample.play();
Posted by: Guest on January-12-2020
2

how to play sound on load js

<audio id="foobar" src="yoursample.ogg" preload="auto">
Posted by: Guest on January-12-2020
-1

how to play sound on load js

#foobar { display: none }
Posted by: Guest on January-12-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language