Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE HTML>
- <html>
- <head>
- <title>Audio</title>
- </head>
- <body>
- <script>
- function play(){
- var audio = document.getElementById("audio");
- audio.play();
- }
- </script>
- <input type="button" value="PLAY" onclick="play()">
- <audio id="audio" src="so_gos.mp3" ></audio>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement