[jQuery] Injecting an <APPLET> tag

[jQuery] Injecting an <APPLET> tag


Why do I need to .append() to a container rather than use .html() for
<applet> tags?
function PlayAudioWav(src)
{
var s = "";
if (jQuery.browser.msie) {
s += '<bgsound src="'+src+'">';
} else {
s += '<applet code="wcAudioPlay.class" width=0 height=0
codebase="/public">';
s += '<param name="src" value="'+src+'">';
s += '</applet>';
}
//$("#divAudio").html(s); // html() does not work, use append()
$("#divAudio").append(s);
return;
}
The behavior applies to FF only. For IE, I can inject <bgsound> fine.