Below are some samples of using HTML5 audio capabilities.
JavaScript source: beeper.js
;
also "view source" for the handlers for the buttons below.
The "beep" sound is from here and the "boop" sound is from here. Both files are from The FreeSound Project, a collaborative database of Creative Commons licensed sounds.
log: