JavaScript local storage


/ Published in: JavaScript
Save to your folder(s)

Here's how to use this:

* To access something in the local storage, type `Evan.local('name')`. You may need to use `JSON.parse()` on this result. Returns `null` if nothing's there.
* To assign something in the local storage, type `Evan.local('name', value)`.
* To remove something from the local storage, type `Evan.local('name', null)`.

This may not work if private browsing is enabled (eg, on Safari for iOS).

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.