Javascript – localStorage

With localStorage you can store key/value pairs on the client-side, with no expiration date as sessionStorage has.

Save data

localStorage.setItem(key, value)

Load data

var variable = localStorage.getItem(key);

, <span>Javascript – localStorage</span>, KandZ
, <span>Javascript – localStorage</span>, KandZ

Remove data

localStorage.removeItem(key);
, <span>Javascript – localStorage</span>, KandZ
, <span>Javascript – localStorage</span>, KandZ

106100cookie-checkJavascript – localStorageJavascript – localStorage

Related posts