start page | rating of books | rating of authors | reviews | copyrights

JavaScript: The Definitive Guide

Previous Chapter 19
LiveConnect: JavaScript and Java
Next
 

19.8 Summary

LiveConnect allows JavaScript and Java to cooperate through two fairly separate and symmetrical systems. In JavaScript, the JavaPackage, JavaClass, JavaObject, JavaArray, and JavaMethod objects all allow JavaScript to read and write Java properties and arrays and to invoke Java methods. In Java, the netscape.javascript.JSObject class allows Java programs to read and write properties of JavaScript objects and elements of JavaScript arrays, to invoke JavaScript functions, and evaluate strings of JavaScript code. The following two subsections summarize these two halves of LiveConnect.

JavaScript to Java

Java to JavaScript


Previous Home Next
Working with Java in Internet Explorer Book Index JavaScript Security

HTML: The Definitive Guide CGI Programming JavaScript: The Definitive Guide Programming Perl WebMaster in a Nutshell