Tag: localStorage

Recent Post

Set an Expiration Date and Time for a localStorage Item

There is no native expiration option but it can be implemented using timestamps.

Store and Retrieve a Function in localStorage

Pass a function through localStorage using the Function constructor object.

Check Total, Used and Remaining Space Available in localStorage

By pushing data into loca, it is possible to calculate total and available space.

Check if a key exists in localStorage

To check for an item, get the value of the item by querying localStorage by its key.

How to save and retrieve images from localStorage

You can use the FileReader API to create a data URL and pass this through localStorage.

Pass data from one HTML page to another

You can make data persistent across pages by accessing the Web Storage API.