2021-02-22 17:27:19 -05:00
|
|
|
<html>
|
|
|
|
<body>
|
|
|
|
<script>
|
|
|
|
console.log("---= LOCAL STORAGE TEST =---");
|
|
|
|
console.log("|``````````````````````````|");
|
|
|
|
localStorage.setItem("foo","bar");
|
2022-08-07 11:47:21 -04:00
|
|
|
var foo=localStorage.getItem("foo");
|
2021-02-22 17:27:19 -05:00
|
|
|
console.log(". foo: "+foo);
|
|
|
|
localStorage.setItem("foo","off");
|
|
|
|
foo=localStorage.getItem("foo");
|
|
|
|
console.log(". foo: "+foo);
|
|
|
|
console.log("|,,,,,,,,,,,,,,,,,,,,,,,,,,|");
|
|
|
|
console.log("---======================---");
|
|
|
|
</script>
|
|
|
|
<pre>
|
|
|
|
<font color="cyan">
|
|
|
|
You'll find the result of storage at sqlite database:
|
|
|
|
|
|
|
|
<font color="lightGreen">e.g. ~/.elinks/lc_storage.db</font>
|
|
|
|
|
|
|
|
Ensure You have the storage table in there:
|
|
|
|
|
|
|
|
<font color="yellow">CREATE TABLE storage (key text, value text);</font>
|
|
|
|
|
|
|
|
For the result of this code see:
|
|
|
|
|
|
|
|
<font color="lightGreen">e.g. ~/.elinks/console.log</font>
|
|
|
|
|
|
|
|
</font>
|
|
|
|
</pre>
|
|
|
|
</body>
|
|
|
|
</html>
|