This page is Ready to Use

Notice: The WebPlatform project has been discontinued when the Stewards partnership agreement ended in September 2015. This site has been frozen, and the assets we have created will remain.

web-storage API

Summary

The Web Storage API provides objects for storing temporary (sessionStorage) and permanent (localStorage) data on the client’s device.

Storage
Provides access to a list of key/value pairs, sometimes called "items". The amount of storage space is limited by browsers. Changes fire ‘storage’ event on dom/Window.

Usage

 These APIs allow web apps to function offline. They are also a performance booster by storing large amounts of data locally instead of waiting for it to download. Lastly, they provide an easier programming model, with no server infrastructure required.

Attributions

  • Portions of this content come from HTML5Rocks!.