unity play sound from audio source code example
Example 1: how to play sound on load js
var sample = document.getElementById("foobar");
sample.play();
Example 2: how to play sound on load js
#foobar { display: none }
var sample = document.getElementById("foobar");
sample.play();
#foobar { display: none }