How to make this ?
I saw this crazy thing on LinkedIn. I am wondering how this is done. can explain this to me?
3 Replies
They use the ScreenDetails API to get the screen's position and apparently according to the tweets I saw from the original dev exchange state between the windows using localstorage
There's some extra details in the original tweet https://twitter.com/_nonfigurativ_/status/1727322594570027343
Wes Bos did a quick video on this multiwindow thing with some extra info and a link to the code in the description @Manish Karki
https://youtu.be/3Hye_47c0Pc
Wes Bos
YouTube
This isn't websockets! fun multi-window demo
pretty fun. Code here: https://github.com/wesbos/hot-tips/tree/main/fun-windows
Broadcast Channel API would even work more efficient instead of local storage