VBscript 调用VC控件时方法不执行,why?
VBscript 调用VC时,方法不执行
在window_onload中调用连接方法时如果不弹出对话框,VC控件的方法就不能调用。
调用时是用框架
<frameset row="*,0">
<frame src="a.htm">
<frame src="b.htm">
</frameset>
在b.htm中代码为:
<script language="vbscript">
sub window_onload
msgbox "connect" '这个是不想要的
first.CONNECT
end sub
</script>
<object id="first" classid="......">
如果row="*,300"就能执行 ,why?