Modern browsers which support HTML5 have a global object called localStorage. It is a key-value store for strings. The data is kept in the browser like a cookie but the storage space is larger. On further visits of the page or when visiting other pages of the same domain the stored data remains accessible.
The specification is not in the main HTML5 document but in a separate webstorage document.
Main methods
- setItem(aKeyString, aValueString)
- getItem(aKeyString)
- removeItem(aKeyString)
- clear()



JSON
HTML5
