Closed marcus7777 closed 2 months ago
const audioElement = document.getElementById('myAudio'); audioElement.addEventListener('ended', function() { // The audio has finished playing // Add your desired action here console.log('Audio has finished playing'); });
or
@ended="...next card"
const audioElement = document.getElementById('myAudio'); audioElement.addEventListener('ended', function() { // The audio has finished playing // Add your desired action here console.log('Audio has finished playing'); });
or
@ended="...next card"