HTML Web Storage Objects

HTML Web Storage Objects

HTML web storage provides two objects for storing data on the client.

Demonstration code

//before using web storage, check browser support for localStorage and
//sessionStorage

if (typeof(Storage) !== "undefined") {
  // Code for localStorage/sessionStorage.
} else {
  // Sorry! No Web Storage support..
}

HTML Web Storage Objects — Structure map

Clickable & Draggable!

HTML Web Storage Objects — Related pages: