Possible Duplicate:
Playing sound with JavaScript
I'm making a javascript chat for my site and I need to play a sound when it has a new message and the chat is not focused, just like the Facebook's chat. Problem is I have no clue how to play this sound in background with javascript. Could you help me?
Edit: Crossbrowser solutions without Flash will be better