Hacker News new | comments | show | ask | jobs | submit login
Show HN: Windtalk – Let windows/iframes invoke each other's functions or objects (pshihn.github.io)
6 points by shihn 6 months ago | hide | past | web | favorite | 3 comments



Wow cool. Just wondering though, how is this even possible? I thought Iframes were sandboxed from each other for security


I'm using a proxy object that ends up sending messages to the iframe behind the scene. So, from your perspective you're just accessing the object/function as if it is was in your window's context

See: https://developer.mozilla.org/en-US/docs/Web/API/Window/post... and https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...


Neat




Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact

Search: