So if Applet HelloWorld has:
-
public void setString(String aString) {
-
javaslocalcopy = aString;
-
repaint(); }
|
Then you can change javaslocalcopy from JavaScript using
|
document.applet["HelloWorld"].setString(text stuff from JavaScript);
|
Care must be taken in typing and best is to convert everything explicitly to Strings in Java and JavaScript
-
Netscape needs to clarify this!
|
Correspondingly Java Applets can control Web Pages with JavaScript functions in them and so access capabilities of Netscape Browser explicitly
|