Audio Pause | Sololearn: Learn to code for FREE!

+8

Audio Pause

How to make an audio pause onclick of another element?

7/28/2020 5:50:29 PM

Jadene & Kayla Onobun

5 Answers

New Answer

+6

https://code.sololearn.com/W0C4YfZnye2x/?ref=app Changed it a bit

+6

Yeah i think so since it is javascript used to control canvas so yes

+6

You can identify it first. For example: var getaud=document.getElementById("audio") function start(){ getaud.play(); //or: getaud.pause()

+4

Thanks guys but the audio wasn't put in the HTML, it was put in the JS https://code.sololearn.com/WCY9dwN1c3r6/?ref=app