+ 4
How do I play a sound in web development when a button is clicked?
How do I play a sound in web development when a button is clicked and stop when clicked again? Pls comment the code
4 Respuestas
+ 4
Ready-made codes are not the source of learning. Leeroy Mokua gave you a hint. Try to make it or else read the corresponding lessons
+ 3
You can try writing a function that changes the html audio element attribute to auto play on the onclick event
+ 3
Can u give me the code im new to web development
+ 2
Learning JavaScript will give you the skills you need to make a sound play or stop whenever a button is clicked.