This example demonstrates the use of JavaScript to call public methods of a Java applet. The onClick event handler of the Pause Clock button calls the stop() method of the Java applet. The onClick event handler of the Start Clock button calls the start() method of the Java applet.
View the Java Source Code.