LocalStorage

Introduction

Store small data in key-value pairs locally within the user's browser.

  • Author: Built-in javascript function

Usage

Reference

Sample code

Save data

localStorage.setItem(key, value);

Read data

var value = localStorage.getItem(key);

Remove data

localStorage.removeItem(key);