storage Event
Example
Execute a function whenever there is a change in the window's storage area:
window.addEventListener("storage", myFunction);
Try it Yourself »
Description
The storage event occurs when there is a change in the window's change area.
Note: The storage event is only triggered when a window other than itself makes the changes.
Browser Support
Event | |||||
---|---|---|---|---|---|
storage | Yes | Yes | Yes | Yes | Yes |
Syntax
window.addEventListener("storage", myScript);
Technical Details
Bubbles: | No |
---|---|
Cancelable: | No |
Event type: | StorageEvent |
DOM Version: | Web Storage |