This example demonstrates the use of JavaScript to call public methods of a Java applet. The onClick event handler of the Change Message button sends the contents of the text field to the changeMessage method of the Java applet . The onChange event handler of the selection control sends its value to the changeSpeed method of the Java applet.
View the Java Source Code.
Return to index page