This program demonstrates a Java Applet that can invoke JavaScript in the browser. Type some simple text (or even HTML codes) in the text area, and watch it appear in a new window when you click the button.