Playing sound notifications using Javascript?

Click Upvote picture Click Upvote · Jan 16, 2009 · Viewed 184.2k times · Source

How can I do that, so whenever a user clicks a link we play a sound? Using javascript and jquery here.

Answer

Alexander Manzyuk picture Alexander Manzyuk · Apr 6, 2012

Use this plugin: https://github.com/admsev/jquery-play-sound

$.playSound('http://example.org/sound.mp3');