Question: This code works perfect for crome and firefox.. but error in IE8

```
if($('#soundcheck').is(':checked')){
                    //alert('checked');
                    var audio = document.createElement('audio');
                    document.body.appendChild(audio);
                    audio.src = system_base_url+'/sound/horn.wav';
                    audio.play();

                  }

```

IE8 says: Object doesn't support this property or method, and it points to :

```
audio.play();

```

Anyone having similar experience with IE8?

Regards

Answer: 
The `<audio>` tag is HTML5 and is only supported in newer browsers, such as Internet Explorer 9, Firefox, Opera, Chrome, and Safari.
Had the same problem! Try:

```
 <a href="javascript: void(0);" onclick="playSound('sound.mp3');">...</a>

<script language="javascript" type="text/javascript">
  function playSound(soundfile) {
  document.getElementById("dummy").innerHTML=
  "<embed src=\""+soundfile+"\" hidden=\"true\" autostart=\"true\" loop=\"false\" />";
  }
</script>

```