<html>
<body>
<FONT face="MS UI Gothic">name<INPUT id="Text1" style="WIDTH: 136px; HEIGHT: 22px" type="textname" size="17" name="Textname"></FONT>
<INPUT id="fresh" type="button" value="fresh" name="fresh">
<P><FONT face="MS UI Gothic"><APPLET id="showname" style="WIDTH: 224px; HEIGHT: 152px" height="152" width="224" code="showname.class">
<PARAM NAME="textname" VALUE="textname.value">
</APPLET> </FONT>
</P>
</body>
</html>在HTML文件中, 当我按下网页上的按钮fresh如何把textname值传入到showname.class中,该句<PARAM NAME="textname" VALUE="textname.value">该如何写?

解决方案 »

  1.   

    忘了,好像是<input name="refresh" ... onclick="refresh()"><script type="text/javascript" language="javascript">
      function refresh() {
        document.showname.setTextName();
      }
    </script>Applectpublic class showname {
      public void setTextName(String s) {
        //接受
      }
    }
      

  2.   

    document.showname.setTextName(document.Text1.value);
      

  3.   

    http://www.google.com/search?hl=zh-CN&q=javascript+applet+%E9%80%9A%E4%BF%A1&lr=lang_zh-CN%7Clang_zh-TW%7Clang_en%7Clang_fr%7Clang_ja
      

  4.   

    applet可以接受参数的吗?
    楼主的applet代码里是如何接受参数的?
      

  5.   

    取得applet对象,其余和别的控件是一样的:
    1)document.applets返回当前applet数组;
    2)document.getElementByID();
    3)document.all.appletName;
      

  6.   

    VALUE="textname.value",这句该是如何的?