Update autoplay.html
This commit is contained in:
+5
-1
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user