Answer the question
In order to leave comments, you need to log in
Why is the JS handler not working properly?
I am not strong in JS, I read the guide on event handlers and wrote the code:
var audio = document.getElementById("musicPlayer");
audio.addEventListener('ended', function () {
nextPlayMusic();
})
var audio = document.getElementById("musicPlayer");
audio.removeEventListener("ended", function() {});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question