Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

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

irt.org | Knowledge Base | Java | Q4047 [ previous next ]

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

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?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.