how to stop audio in javascript code example Example: javascript audio stop sound.pause(); sound.currentTime = 0;