window localstorage or localstorage code example
Example 1: copy localstorage javascript
var data = JSON.parse(/*previously copied stringified JSON from clipboard*/);
Object.keys(data).forEach(function (k) {
localStorage.setItem(k, data[k]);
});
Example 2: localstorage
var cat = localStorage.getItem('myCat');