+ 14
Here's the example. I used a button. You can try using body instead. https://code.sololearn.com/WYQWv9z9cndF/?ref=app
16th Jun 2021, 5:29 AM
Igor Makarsky
Igor Makarsky - avatar
+ 14
https://code.sololearn.com/WxPVZz819g1O/?ref=app
16th Jun 2021, 7:38 AM
Simba
Simba - avatar
0
You are not forced to add controls attribute for the audio. Add the onclick event to the body tag. You can use the play fumction [.play()] to play the song; that's so easy
16th Jun 2021, 3:42 PM
Radin Masiha
Radin Masiha - avatar