I want to preload two sound-files and play them on user event.
Trying to do
<audio id="ok" src="ok.mp3"></audio>
<audio id="bad" src="bad.mp3"></audio>
and later
document.getElementById("ok").play();
This works only with one file, not two!?
Tried also
var au = new Audio('ok.mp3');
au.play();
without sucess.
All i dandy in windows / chrome but nothing on the iPod.
Thankful for any cross-browser insight in the matter. (html5).
regards,