Use this code it will serve your purpose.
<!DOCTYPE html>
<html>
<body>
<audio id="player" src="horse.ogg"></audio>
<div>
<****on onclick="document.getElementById('player'.play()">Play</****on>
<****on onclick="document.getElementById('player'.pause()">Pause</****on>
<****on onclick="document.getElementById('player'.muted=!document.getElementById('player'.muted">Mute/ Unmute</****on>
</div>
</body>
</html>
The code for the html5 ****on
Mi piace
Commento
Condividi