Archive for December, 2009

JavaScript MessageBeep

Tuesday, December 15th, 2009

For quite some time I tried to find something like MessageBeep in JavaScript to attract the user’s attention for a change on the screen. JavaScript doesn’t have anything similar.

But I found a small flash player called niftyplayer that can play mp3 sounds, stay invisible and be controlled from javascript. To get the MessageBeep effect, simply install the player, set width and height to 0 and call niftyplayer(‘niftyPlayer1’).play();

(Thanks to pragma for pointing me in the right direction.)