Why do I love all of my javascript changes once a form is submitted on my webpage?
My webpage below has a changeable background color, but once the form is submitted or once the page is reloaded, it goes back to the default color. Is there a simple way to prevent that in javascript?
I presume that when you say "love", you mean "save" ;-)
StingRaY
You may save your background color into cookie and load them when the page is loaded.
shampouya
ASKER
Sorry I meant to say why do I lose all my javascript changes. Is there any way to keep the changes once the form on my page is submitted? Does the form being submitted count as a reload of the page?