Tag: sessionStorage

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.

Check Total, Used and Remaining Space Available in localStorage

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

Build a Visitor Counter with JavaScript & Node.js

The counter tracks visits and pageviews independently with a simple backend.

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.