There are currently four active methods for storing data on the client side.
Cookies (old school, still useful because they are sent with server requests)
Local Storage (very easy to use)
Session Storage (exactly the same, only clears when the tab is closed)
IndexedDB (quite complex, quite powerful)
Direct Link to Article — Permalink
An Overview of Client-Side Storage is a post from CSS-Tricks