我再粘一次我的代码,上面的有点乱: <HTML> <H1> C++Builder 6 ActiveX Test Page </H1><p> You should see your C++Builder 6 forms or controls embedded in the form below. <script LANGUAGE=JavaScript>
function startinstaller(URLpath) { alert(cbb.URLpath); cbb.StartWork(); }
{
alert(URLpath);
cbb.path = URLpath; //.path假定为此控件的属性
cbb.StartWork();
}
<input TYPE="button" VALUE="进入" onClick="startinstaller('http://www.google.com')">
-----------------------
<script LANGUAGE=JavaScript>
function startinstaller(URLpath)
{
alert(URLpath);
cbb.StartWork();
}
</script>
<HTML>
<H1> C++Builder 6 ActiveX Test Page </H1><p>
You should see your C++Builder 6 forms or controls embedded in the form below.
<script LANGUAGE=JavaScript>
function startinstaller(URLpath)
{
alert(cbb.URLpath);
cbb.StartWork();
}
</script>
<OBJECT
id=cbb
classid="clsid:5957A09B-CD24-4B61-ACF8-56C2A3F48238"
codebase="http://192.168.0.19/ActiveRegProj1.inf"
width=350
height=250
align=center
hspace=0
vspace=0
>
<PARAM NAME="URLpath" VALUE="eWaterInstaller.exe">
</OBJECT>
<form>
<input TYPE="button" VALUE="进入" onClick="startinstaller(cbb.URLpath)">
</form>
</HTML>
问题应该怎么解决呢