Stopping Sound
Question: How do I write a JavaScript function that stops playing sound?
Answer:
If you've opened a separate sound control window using the code
self.location="AUDIO_FILE_URL"
(see Example 1),
then there is no simple way to stop the sound programmatically.
The user will have to close the sound control window manually.
To be able to stop playing sound from JavaScript,
you'll need to use the techniques described in
Example 2.