function startinstaller() 
  {
alert(URLpath);
         cbb.path = URLpath;  //.path假定为此控件的属性
   cbb.StartWork(); 
  }

解决方案 »

  1.   

    function startinstaller(URLpath) 
      {
    alert(URLpath);
             cbb.path = URLpath;  //.path假定为此控件的属性
       cbb.StartWork(); 
      }
    <input TYPE="button" VALUE="进入" onClick="startinstaller('http://www.google.com')">
      

  2.   

    <input TYPE="button" VALUE="进入" onClick="startinstaller(cbb.URLpath)">
    -----------------------
    <script LANGUAGE=JavaScript>
     function startinstaller(URLpath) 
      {
    alert(URLpath);
       cbb.StartWork(); 
      }
       
    </script>
      

  3.   

    为什么按照以上两位的来改,点击进入按钮的时候会弹出一个alert,但是并没有显示URLpath的值,只是显示的是一个“undefined”,这是怎么回事呢
      

  4.   

    我再粘一次我的代码,上面的有点乱:
    <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>
    问题应该怎么解决呢
      

  5.   

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