简体   繁体   中英

How do I send messages from Javascript to Java?

I'm kind of stuck because I can get JavaScript to send a message to a Java applet. I can get it to work the other way round. Does anyone know a proper way to do this that works everywhere?

您可能需要将<PARAM NAME="scriptable" VALUE="true">OBJECTAPPLET标记。

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

For calling JavaScript from Java, you use JSObject .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM