<Audio> fallback through Javascript
问题 I want to understand how to implement HTML5 <audio> fallback using Javascript... i.e. I have a div on my page, to which , I dynamically append <embed> tag when "Play audio" link is clicked currently.. i.e. I currently use function playSound(audioUrl) { var x = document.getElementById("playAudio"); x.innerHTML = '<EMBED src="'+audioUrl+'" autostart=true loop=false volume=100 hidden=true>'; } I want to have the same thing implemented using the HTML5 <audio> tag, But want to fallback to embed