Saving variables in local HTML -


i making html file myself , want able enter variables close program , when open agian still remember variable without me having enter again? possible do

this how can set , variables local storage:

localstorage.setitem("key", "value");  alert(localstorage.getitem("key")); 

this display value on screen.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -