How can i add background music without show any controls and music autoplay?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How can i add background music without show any controls and music autoplay??

2nd May 2019, 4:31 PM
Sahariar Shafin
Sahariar Shafin - avatar
3 Answers
+ 5
Add attribute unvisible
10th Dec 2019, 1:20 PM
sil 🇬🇷
sil 🇬🇷 - avatar
+ 4
In js: var audio = document.createElement ("audio"); audio.src = "URL. mp3"; audio.play (); Don't think it too difficult. Just reply me if any difficulty. Nothing to do in HTML then.
2nd May 2019, 4:35 PM
Sarthak Pokhrel
Sarthak Pokhrel - avatar
+ 1
Not working your code
2nd May 2019, 4:44 PM
Sahariar Shafin
Sahariar Shafin - avatar