Loading ...
Sorry, an error occurred while loading the content.

calling applet function from javascript

Expand Messages
  • abhinav247
    I am getting error message as object doesnt support this method . thanx HTML code ------ function submit1() {
    Message 1 of 1 , Apr 1, 2002
      I am getting error message as
      "object doesnt support this method".


      HTML code ------
      <script language="javaScript">
      function submit1() {
      document.matter.msg.value = document.applet1.getText
      <APPLET name="applet1" CODE="applet1.class" WIDTH=463
      <form name="matter">
      <input type="text" name="msg" value="asdjklfh">
      <a href="javascript:submit1()">check</a>

      Applet code is ---------------------

      import java.awt.*;
      import java.applet.*;

      public class applet1 extends Applet {

      static String message = null;

      public void init(){
      public void check(String mess){
      message = mess;
      public String getText(){
      return message+"Accepted";
    Your message has been successfully submitted and would be delivered to recipients shortly.