How to add sound in the background in web | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to add sound in the background in web

23rd Aug 2020, 4:55 PM
Pratham Pahwa
Pratham Pahwa - avatar
2 Answers
+ 1
Add audio tag withot controls Boolean but you hve to add an eventlistener to start as audio don't start on its own there must be usser action like click,dblclick,keypress... or you can set display none to audio tag.
24th Aug 2020, 4:22 AM
Divya Mohan
Divya Mohan - avatar
+ 2
(search before posting your question to avoid duplications, thank you) Jan Markus well said! https://www.sololearn.com/Discuss/335228/?ref=app
23rd Aug 2020, 5:00 PM
Rohit