Suppose applet HelloWorld has method:
|
You can change javaslocalcopy from JavaScript using: |
document.applet["HelloWorld"].setString(myStr); |
To avoid a type mismatch, it is best to convert everything explicitly to strings in Java and JavaScript
|
Correspondingly, Java applets can control web pages containing JavaScript functions and thus access capabilities of Netscape Browser explicitly
|