LiveConnect
In Navigator 3.0, LiveConnect is the "glue" that connects JavaScript with Java and with Navigator plug-ins. It has the following new features:
- The
JavaPackageobject represents a Java package. - The
JavaClassobject represents a Java class. - The
JavaObjectobject represents a Java object. - The
JavaArrayobject represents an array in Java. - The
JavaMethodobject represents a Java method. - The
getClass()method returns the JavaClass object for any given JavaObject object. - The Java class netscape.javascript.JSObject represents a JavaScript object from within Java applets.
- The
applets[]array of the Document object is an array of JavaObject objects that represent the applets embedded in the document. - The
embeds[]array of the Document object is an array of JavaObject objects that represent the embedded objects in the document, and allow JavaScript to control the Navigator plug-ins that display those objects.
See LiveConnect: JavaScript and Java for details on all of these new objects, functions, and arrays.