The buttons below use JavaScript to call the setColor method on the applet. When you press one of the buttons, you will see the applet change color. When you click the applet, Java calls the the doAlert() JavaScript function on the page.

JavaScript Java Applet


  Your browser does not support Java, so nothing is displayed.