Does Java Plug-in support Java-JavaScript communication?
Yes, Java Plug-in supports basic, bidirectional Java-JavaScript communication. Previously, Java Plug-in required that that HTML parameter MAYSCRIPT be used to invoke applets that needed to access JavaScript. However, the Microsoft implementation does not honor the MAYSCRIPT parameter, and many existing applet pages on the web do not include it in their HTML. To provide maximum compatibility with existing applets, Java Plug-in no longer checks the MAYSCRIPT parameter, allowing all applets to access JavaScript. The following, however, is a known incompatibility. In the Microsoft implementation, applet methods and properties exposed in JavaScript are exactly the same as the methods and fields in the applet object. In Java Plug-in, an applet’s methods and properties are exposed in JavaScript through JavaBeansTM introspection, which treats the applet’s fields in a different manner than the Microsoft VM.