0

How do I make music play when I click on a <button>?

1st Sep 2020, 12:54 AM
Y4CH0U
Y4CH0U - avatar
2 Antworten
+ 4
You can use javascript play() or pause() function to play or pause audio using javascript Ex: document.getElementById("id").play() Or document.getElementById("id").pause()
1st Sep 2020, 1:37 AM
Ayush Kumar
Ayush Kumar - avatar
0
Thanks man!
1st Sep 2020, 9:28 PM
Y4CH0U
Y4CH0U - avatar