Here is an example of Javascript that allows the user to have the background is a specific color. The setCookie and getCookie functions are on the other page and must be included before the following code
// the following allows the user to type in a value
// in this case the color desired and then process it
// so the same technique could be used to get a user's name
// create an instance of the Date object
var now = new Date();
// cookie expires in 5 minutes
now.setTime(now.getTime() + 1 * 60 * 1000);
var backgroundc= getCookie("background");
// if the cookie wasn't found, it hasn't been set
if (backgroundc == null) {
  backgroundc = prompt( "What is your favorite color? or press cancel", '');
}
if (backgroundc == null) {
	backgroundc = white
}
// the following line changes the background color so to
// print the users name a different command should be used,
// such as document.write.  If you are still having problems
//check with me
document.bgColor=backgroundc
// set the new cookie
setCookie("background", backgroundc, now);