View Full Version : Resolved OnClick sound for all browsers?

Chris Hick
11-11-2010, 01:17 AM
I was wondering if there is a javascript code that works in all browsers and will allow when a person clicks on a certain tab I have that it plays a short beep.

Old Pedant
11-11-2010, 02:27 AM
I posted this a while back:

It worked in IE, FF, and Chrome, at least.

Dirt simple, too.

11-11-2010, 02:40 AM
Alternative solution is to use JavaScript Sound Manger API (http://www.schillmania.com/projects/soundmanager2/) which uses a tiny flash file instead of using midi or mp3. I implemented it in my Tower of Hanoi game which is linked in my sig below.

Chris Hick
11-11-2010, 02:54 AM
Old Pedant, so what parts of that script do I need to take out and add to my link? The javascript in the head tags is obvious.


Never mind I got it working.. Thanks alot!