<!DOCTYPE html>
<html>
<head>
<title>2K code</title>
<meta charset="utf-8" />
<meta name="author" content="2K code" />
<meta name="robots" content="noindex" />
<meta name="viewport" content="width=device-width" />
<style type="text/css">
audio, button {
border: 0px;
padding: 8px;
background: #F0F0F0;
}
</style>
<script type="text/javascript">
function test(url) {
var aud=document.getElementById("audio");
aud.src=url;
aud.play();
}
</script>
</head>
<body>
<audio id="audio" controls>
Your browser does not support the HTML5 Audio.
</audio>
<p>
<button onclick="test('audio1.mp3')">Audio #1</button>
<button onclick="test('audio2.mp3')">Audio #2</button>
<button onclick="test('audio3.mp3')">Audio #3</button>
<button onclick="test('audio4.mp3')">Audio #4</button>
</p>
</body>
</html>