|
JavaScript button to change background colors
I am new to JavaScript. As a student we are given projects and I cannot for the life of me figure this one out. I am to use the a simple document object, specifically document.bgColor, to create one button that directs the user to click to change background color. I can change color fine but not to change the color back. The rub here is only to use one button and to keep it simple. If anyone can help me I would be eternally grateful. Thank You in advance
Last edited by hull; 03-09-2005 at 07:53 PM..
Reason: wrong document object
|