Below is an example of a Javascript code that will change
the pages background to the selected colour on request.

 

 

Please select a Background Color

 

 

Another JavaScript example can be seen on the KTG Designs Contact page.
The contact form contains JavaScript coding to validate required fields.