Not sure if this is what author wanted....I did add a pop up alert...
The way this works: Type in "buttonColor" an Cookie Value...Pres Set button..see color change on button.
Type in another cookie name and value..press set cookie...Button changes back to blue
Set Cookie
Get Cookie
Delete Cookie