Background Color Changer


Example of Script
To change the background color of the page, click the button of your color choice.
Grab the Code
Explanation of Code
This script uses the OnClick event handler to change the color of the page's background by setting a new value for the bgColor property. The bgColor property is a string property that defines the background color of the document.
Copyright © 2001 John H. Bolgiano, Jr. - All rights reserved
Modified with permission for educational use by Roberta Bush