4 ms·
Yep, using w.postMessage()
by zuck9 10y ago
Yep, using w.postMessage()
- dang 10y agoThat's pretty close to what I'm doing now, but I use chrome.tabs.sendMessage. Thanks; I'd love to get this working without that dependency.
- jakub_g 10y agoAFAIU postMessage() works between the frames (even cross-origin) within a tab. If you need communication between the tabs, localStorage is the way to go
- skeoh 10y ago`postMessage()` works between ANY window references -- tabs or frames. As long as you have a reference to the window (which you will if you call `window.open()`) then you can post messages to it.