If you want to store data from one page visit to another (such as the total number of times you have washed the dishes) you will need to use a cookie or local storage.
BTW, when posting here please help us to help you by making it easier to copy, test and debug your scripts by following the posting guidelines and wrapping your code in CODE tags. This means use the octothorpe or # button on the toolbar. You can (and should) edit your previous post.
It's unthinkable that racing might not go ahead today because of the weather. Although obviously it might not. - bv Racing commentator, BBC Radio 3.
All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.
Last edited by Philip M; 04-24-2013 at 09:05 AM..