Update autoplay.html

This commit is contained in:
uazo
2020-11-08 21:07:23 +01:00
committed by GitHub
parent fa3a3518a2
commit ac1ea62042
+5 -1
View File
@@ -7,7 +7,7 @@
</head>
<body>
<audio controls autoplay id="audio-example">
<audio controls autoplay id="myAudio">
<!-- One or more source files, each referencing the same audio but in a different file format.
The browser will choose the first file which it is able to play. -->
<source src="https://upload.wikimedia.org/wikipedia/commons/8/83/Artis%2C_enkele_flamingo%27s_-_SoundCloud_-_Beeld_en_Geluid.ogg">
@@ -27,5 +27,9 @@
Read more: https://html.com/attributes/audio-autoplay/#ixzz6dCxFrzCr
<script type="text/javascript">
document.getElementById("myAudio").play();
</script>
</body>
</html>