I have a bookmarklet and I would like to play a sound when a user releases it on the bookmark bar.
This is the code i have.
<audio id="applause" preload="auto" autobuffer>
<source src="applause.mp3" />
<source src="applause.ogg" />
</audio>
<script type="text/javascript">
$('#bookmarklet a').mouseup(function() {
$('#applause')[0].play();
});
</script>