November 2011
Intermediate to advanced
320 pages
10h 18m
English
Web storage is a simple database solution first implemented by Mozilla engineers in Firefox 1.5 and eventually embraced by the HTML5 specification.[178] It is available in all current browsers but not in Internet Explorer 6 or 7.
Following several dubious iterations, the current design relies on two simple JavaScript objects: localStorage and sessionStorage. Both objects offer an identical, simple API for creating, retrieving, and deleting name-value pairs in a browser-managed database. For example:
localStorage.setItem("message", "Hi mom!");
alert(localStorage.getItem("message"));
localstorage.removeItem("message");The localStorage object implements a persistent, origin-specific storage that survives browser shutdowns, ...
Read now
Unlock full access