Return to Snippet

Revision: 50182
at August 14, 2011 10:28 by FatFolderDesigner

Initial Code
//Store "something" to the local storage under the name "stored_item".

// Get "item" from the localStorage item "something";
var stored_item = localStorage["something"];

// Clear the local storage variable "something" 

Initial URL

Initial Description
This is just a simple explanation of how to use the HTML5 local storage in javascript. The link has a more thorough explanation and an example for those interested. The examples to save, retrive, and clear are marked below.

Initial Title
Local Storage in HTML5

Initial Tags
javascript, jquery, html5

Initial Language