I'm trying to set up a client's website to play back an audio file on page load (at his demand, not a preferred feature for me). I have used some simple JavaScript but the audio isn't playing when the page loads. Any ideas why this is happening?
<head>
<!--other metadata up here-->
<script>
function EvalSound(soundobj) {
var thissound = document.getElementById(soundobj);
thissound.Play();
}
</script>
<embed src="scripts/audio.wav" autostart=true width=1 height=1 id="audio"
enablejavascript="true">
</head>
<body>
<div id="container" onload="EvalSound('audio')">
<!--rest of page>
</body>