trigger js when audio stops playing code example Example: javascript audio stop sound.pause(); sound.currentTime = 0;