<PARAM NAME="URLpath" VALUE="eWaterInstaller.exe">
alert(URLpath.value);==========================><PARAM NAME="URLpath" id="URLpath" VALUE="eWaterInstaller.exe">
alert(URLpath);<H1> C++Builder 6 ActiveX Test Page </H1><p>
You should see your C++Builder 6 forms or controls embedded in the form below.
<PARAM NAME="URLpath" id="URLpath" VALUE="eWaterInstaller.exe"></p>
<form>
<input TYPE="button" VALUE="进入" onClick="startinstaller(URLpath.value)">
</form>
<script LANGUAGE=JavaScript>
 function startinstaller(URLpath) 
  { alert("iji");
alert(URLpath);
  }
   
</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
>
</OBJECT>

解决方案 »

  1.   

    还是不行呀,仍然是undefined,我把你上面这段代码考过去,运行出来结果还是一样:
    <H1> C++Builder 6 ActiveX Test Page </H1><p>
    You should see your C++Builder 6 forms or controls embedded in the form below.
    <PARAM NAME="URLpath" id="URLpath" VALUE="eWaterInstaller.exe"></p>
    <form>
    <input TYPE="button" VALUE="进入" onClick="startinstaller(URLpath.value)">
    </form>
    <script LANGUAGE=JavaScript>
     function startinstaller(URLpath) 
      { alert("iji");
    alert(URLpath);
      }
       
    </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
    >
    </OBJECT>
      

  2.   

    http://community.csdn.net/Expert/topic/3509/3509651.xml?temp=.2669336