I want to communicate between two different tabs in the same browser (on the same domain).
When a specific event fires in the second tab, I change a localstorage variable value (using Javascript). I want to detect this change on the first tab. The variable is named "status" and the value changes from 0 to 1
I was thinking for a possible solution and I think that using a timer on the first tab will work, but I think also that there must be a better way.
Do you know if there is any way to detect when the "status" variable value changes without using a timer?
Thanks a lot!