Play Audio in JavaScript After Page Load or Delay Time

preview_player
Показать описание
Play audio in HTML after page loads and play an audio file in JavaScript after a few seconds.
To learn more on this topic :
You can learn to play audio delay in JavaScript.
Рекомендации по теме
Комментарии
Автор

my first video here, though I had to use speakers, Great things covered.

ug_it_english
Автор

in the moderen browsers you can't play audio automatically, it's forbidden.
you can play audio only by event like a click..

ضياء
Автор

Wow This is very easiest way but no need for addEventListener..?
Thanks for the awesome tutorial..

kamsyd
Автор

how do we do it on opening it from folder (simply double clicking on index.html file), it doesnt work on first page load but after i opened it and then refresh the page then it works?

JSSolutions
Автор

How to autoplay audio in
Latest version....
Will this method work??

imniladrimondal
Автор

my issue, IE new version work, but firefox and Chrom does not work ? can you solve it ?

ilikeit