c2h2
c2h2

Reputation: 12349

best way to play audio reliably and quickly in webpage?

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

Answers (2)

Egor Pavlikhin
Egor Pavlikhin

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

tekknolagi
tekknolagi

Reputation: 11012

there's html5 <audio> tag... just add an src and an onclick for user actions

Upvotes: 0

Related Questions