how to set readonly localstorage data 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: javascript localstorage
var KeyName = window.localStorage.key(index);