Solaris Java Plug-in User's Guide

Java-JavaScript Bi-directional Communication

JavaScript can access the methods of applets, and applets can access the Document Object Model (DOM) through JavaScript. Thus an HTML author can access applet methods and applet developers can access the DOM.

See online documentation on Java-to-JavaScript and JavaScript-to-Java at http://java.sun.com/j2se/1.4/docs/guide/plugin/developer_guide/java_js.html and http://java.sun.com/j2se/1.4/docs/guide/plugin/developer_guide/js_java.html respectively. Be sure to read the sections on security.