0
votes

I added this to a condition on my site:

$("body").append('<embed src="Sound.wav" autostart="true" hidden="true"></embed>');

and it worked, but the page stopped accepting input after the sound played. This is for an in-house application, so I can specify which browser and version the person has to use.

Q: Why did the page stop accepting input into the text input field?

1
The text input field works for me, but 4 <embed> tags appeared randomly. You should scrap the jquery.sound.js route and try something else.Kelly

1 Answers

2
votes

EEK. If you want to play a sound in a web browser, IMHO there is only one easy, cross-browser, glitch-free way to do it properly. That's to use SoundManager 2. I'm really not sure why you're experiencing the behavior you are, but you can expect to encounter other strange results as you view the page in different browsers and browser versions.