Skip to Content

LocalStorage

Use LocalStorage to store data temporarily.

February 18, 2018

Demo


Open this page in another tab and change the text below.

The storage event triggers on the other windows, giving us a way to communicate between windows using localStorage. This will be used for things like contact form messages so tabs/windows can be switched by the user without losing message data.

  • Message

Additional Notes

This is only one example of the many things localStorage can do.