A
anonymous
This is what I'm doing. It works in Netscape but doesn't work in IE
6. I thought it should, any ideas?
File: FirstApplet.java
----------------------
import java.applet.Applet;
public class FirstApplet extends Applet {
public String firsttest() {
return "Hello World";
}
}
File: test1.html
----------------
<html><body>
<APPLET
NAME="myapplet"
CODEBASE="."
CODE="FirstApplet.class"
WIDTH=1
HEIGHT=1>
</APPLET>
<script>
var answer = document.myapplet.firsttest();
alert ( answer );
</script>
</body></html>
6. I thought it should, any ideas?
File: FirstApplet.java
----------------------
import java.applet.Applet;
public class FirstApplet extends Applet {
public String firsttest() {
return "Hello World";
}
}
File: test1.html
----------------
<html><body>
<APPLET
NAME="myapplet"
CODEBASE="."
CODE="FirstApplet.class"
WIDTH=1
HEIGHT=1>
</APPLET>
<script>
var answer = document.myapplet.firsttest();
alert ( answer );
</script>
</body></html>