4 ms·
It's HTML5's "localStorage", a local database that is all key/value. localStorage.setItem("theKeyToSaveItAs", "theValue"); OP is saving via localStorage every
by grimgrin 14y ago
It's HTML5's "localStorage", a local database that is all key/value.
localStorage.setItem("theKeyToSaveItAs", "theValue");
OP is saving via localStorage every 2 seconds:
setInterval(function() {
localStorage.setItem("text", textarea.value);
}, 2000);
- keithpeter 14y agoThanks for the code example. I've tracked down where Firefox puts this, and I've realised that the original piece of work will carry on working when saved locally. Quite interesting...