Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q4047 How do we exchange data between Java and JavaScript and vice-versa?

You are here: irt.org | FAQ | Java | Q4047 [ previous next ]

Public variable and methods of Java Applet are visible to a HTML document. So using JavaScript you can access the public variables and public functions.

The syntax is:

var some_var = document.appletname.variable_name

With this you will get the value of the variable variable_name in your JavaScript variable some_var.

Feedback on 'Q4047 How do we exchange data between Java and JavaScript and vice-versa?'

©2018 Martin Webb