I have developed my first nokia web app . I am trying to play sound which saved in local storage when button clicked
this is my code but it doesn't work
<div class="odd" id="g" onclick="playSound('s40-theme/sounds/piano_G.mp3')"></div>
<script type="text/javascript">
function playSound(file) {
var embed = document.createElement("embed");
embed.setAttribute('src', file);
embed.setAttribute('hidden', true);
embed.setAttribute('autostart', true);
document.body.appendChild(embed);
}
</script>