Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Does Java Plug-in support Java-JavaScript communication?

0
Posted

Does Java Plug-in support Java-JavaScript communication?

0

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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123