0
How do I make music play when I click on a <button>?
2 Answers
+ 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()
0
Thanks man!