Cross-Tab storage Event Playground

Two pages, one shelf: this page and a real same-origin iframe listen for the real storage event. Who hears when one of them writes? An interactive Cross-Tab…

Why it matters

Log out of every tab at once, a cart that follows along, a theme that catches up: the storage event gives cross-tab sync without a server. But its rules are strict: the writer never hears itself, the values are always strings or null, and a write that changes nothing tells nobody.

The key idea

The storage event is for the other pages, and only for changes

Common mistakes

Try it in this playground