okay, two seperate things.
first you need to make the pop-up funtion.
something like this in your <head> will work
HTML Code:
<script type="text/javascript">
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,men ubar=0,resizable=1,width=210,height=210');");
}
</script>
in that script, there are some obvious parameters that you can modify to resize the pop-up window, adjust the dimensions, etc.
then you want to be able to make a link cause the pop-up to open, so a link would work like this
HTML Code:
<a title="Listen" href="javascript:popUp('m.html')">Listen</a>
last, on the page that's going to open the file, you would use a code similar to this, in order to actually play the file in the browser.
HTML Code:
<object id="Player"
classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
<param name="url" value="some.wav" />
<param name="autostart" value="true" />
</object>
I've attached the quick & dirty example files.
Bookmarks