The Storage Event is triggered when there is a change in the window's storage area.
Note: The storage event is only triggered when a window other than itself makes the changes.
Therefore, in this example, a hidden iframe is used. The hidden iframe has one mission; whenever it is targeted, it will change the value of a local storage item named "mytime" with the value of the current date in milliseconds.
The url property belongs to the Storage Event object, and returns the url of the page where the item was changed.
The url of the page where the item was changed: