C H A P T E R  6

Storing Data in the Browser

A natural complement to offline applications is client-side data storage. HTML5 defines some useful JavaScript APIs for storing data in the browser, ranging from simple name/value pairs to using a JavaScript object database. In this chapter, I show you how to build applications that rely on persistently stored data, including details of how to use such data in an offline web application.

Image Caution The browser support for data storage is mixed. You should run the examples in this chapter using Google Chrome, with the exception of those in the IndexedDB section, which will run only in Mozilla Firefox. ...

Get Pro JavaScript for Web Apps now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.