provato su Firefox con un file audio che si chiama ding.wav


codice:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="it" xml:lang="it">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    
    <title>xhtml 1.0</title>


    <script type="text/javascript">
    
    function doEmbed(currentYear) {
        obj_emb = document.getElementById('objwav');
        alert(obj_emb.src);
        obj_emb.play()
    }

    window.onload = function() {
       doEmbed();
    }
    </script>


<body>
    <embed src="ding.wav" id="objwav" />       
</body>
</html>