Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <button onclick="NeverPlay()">Play</button>
- <script>
- function NeverPlay(){
- var audio = document.createElement('audio');
- audio.style.display = "none";
- audio.src = Never.mp3;
- audio.autoplay = false;
- audio.loop = true;
- audio.onended = function(){
- audio.remove() //Remove when played.
- };
- document.body.appendChild(audio);
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement