Reputation: 12349
I would like to play a short audio file (like a notification sound) when people hit the html button. also stay on the same page?
Is there any jQuery, prototype js way to do it hopefully can do it without FLASH.
Upvotes: 2
Views: 748
Reputation: 17981
The most popular javascript framework for that sort of thing is SoundManager 2, which is used by Last.FM among others. It supports HTML5 as well as Flash for backwards compatibility.
Upvotes: 3
Reputation: 11012
there's html5 <audio>
tag... just add an src
and an onclick
for user actions
Upvotes: 0