The browser can remember things between visits. This example uses localStorage to save the time of your last click, even after you close and reopen the page.
Saves a timestamp to localStorage, then counts up from it every second — even across page reloads.