Security issues prevent applets from fulfilling many useful roles. The cost of downloading a complete user interface every time a page is viewed causes many users to shy away from Java applets. However, we need to explore new ways to make use of client processing without encountering the same stumbling blocks that relegated Java applets to mostly ad-ware and scrolling news tickers. JavaScript One of the most overlooked uses of Java technology on the client is the integration between Java applets and JavaScript. The JavaScript standards have long provided a method for scripts to call applet classes.
Applets can also call script methods.
This integration allows us to use each technology to its best advantage. We develop and maintain the required functionality and leave the user interface design totally in the hands of Web page developers. Furthermore, by exploiting this integration, we enhance the user experience while maintaining a minimal client footprint. We simply create the necessary Java utility classes and provide the JavaScript designers access to those methods. The com.netscape.JSObject class allows us to access the JavaScript methods and objects.