3 <body bgcolor=
"Silver">
4 <audio id='audio1'
src=
"mpthreetest.mp3" controls
></audio>
6 var audio
= document
.getElementById('audio1');
7 var mediaElement
= audio
;
13 audio
.oncanplaythrough = function() {
14 document
.title
= 'ready_to_play';
17 audio
.onended = function(e
) {
18 document
.title
= 'ended';
21 <button id=
"button1" onclick=
"playaudio()">Click me
</button>