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.
Additional Notes
This is only one example of the many things localStorage can do.