LiveConnect is an important but still experimental capability that allows Java applets to freely access JavaScript variables and vice versa |
You can use this to call Java methods in JavaScript noting that a Java package X is called Packages.X in JavaScript |
var mydate = new Packages.java.util.date(); |
Creates a JavaScript variable from the Java Date constructor |
This development potentially gives an interpreted version of Java! |
LiveConnect is only supported by Netscape at present |
You can also change Java variables in running applets as long as they are public (see next page) |