Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <meta http-equiv="X-UA-Compatible" content="IE=edge" />
- <script language="javascript">
- function run() {
- var audio = document.getElementById('music');
- audio.currentTime=0; <!-- This causes an error on IE 11 -->
- audio.play();
- }
- </script>
- <body onload="run();">
- <div style="display:none;">
- <audio id="music" type="audio/mpeg" src="music.mp3" preload="auto"></audio>
- </div>
- </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement