Prevent loss of variables when browser reload button is pressed

global-variables, javascript, reload

Solution

Try this cookie-less javascript function.

It basically store your data in the `window.name` property which does not clear the value when you reload the page or goes to another site.

Problem

Is it possible to keep my (global) variables when the page is reloaded? If yes, how? Thanks for any help. Best regards.

Original source

Related problems