Storing Data in HTML

Overview

  • Introduction

    Cookies vs Web Storage Cookies Local/Session Storage Small amount of data stored (<=4kb) Larger amount of data can be stored Stored in text files or SQLite database Stored in SQLite Database Associated with specific website Associated with specific website.

  • Using Local and Session Storage

    Save data Using setItem() save data to local and session storage Retrieve data Using getItem() retrieve data from local and session storage Grab and display all data Using a for loop to iterate over each key/value pair in local and session storage Delete data from storage Using removeItem() delete a key/value pair from local and session storage Using clear() delete all data from local and session storage JSON data and local and session storage Using JSON.

I will get back to you ASAP.