By the by, a sneaky way I do this:
Code:
<a href="someFile.wav" target="hiddenFrame"> Play sound </a>
<iframe name="hiddenFrame" style="width: 100%; height: 100ps; display: none;"></iframe>
Or you can pass in the file name and parse the query string:
Code:
<a href="playSound.html?file=someFile.wav" target="hiddenFrame"> Play sound </a>
<iframe name="hiddenFrame" style="width: 100%; height: 100ps; display: none;"></iframe>
And then your "playSound.html" (or it could be ".php" or ".asp" page! which might have advantages) looks at the query string and figures out what file to load and play.