How to send messages from Javascript to Java?

I am stuck because I can get JavaScript to send a message to a Java applet. I can make it work the other way around. Does anyone know the right way to do this, which works everywhere?

+3
source share
2 answers

You may need to add <PARAM NAME="scriptable" VALUE="true">to the tag OBJECTor APPLET.

+3
source

To call Java from JavaScript, you can use public methods in your applet that you call from JavaScript. See this post for more information .

JavaScript Java JSObject.

+2

Source: https://habr.com/ru/post/1716299/


All Articles