Code
<form name="changeColor">
<p><font size="2" face="Verdana,Arial,Helvetica,Sans Serif">Choose
a Background Color: <br> <br> <input type="button" name="colr"
value=" BLUE " onclick="document.bgColor='#0000FF'"> <input
type="button" name="colr" value=" RED " onclick="document.bgColor='#FF0000'">
<input type="button" name="colr" value=" GREEN "
onclick="document.bgColor='#00FF00'"> <input type="button"
name="colr" value=" WHITE " onclick="document.bgColor='#FFFFFF'">
<input type="button" name="colr" value=" BLACK "
onclick="document.bgColor='#000000'"></font> </p> </form>