Communicate between iFrame and parent window

Nowadays, a lot of third-party services, embed codes and other utils using an iFrame window to embed plugins and other layouts into other sites or applications.
If you have ever tried to create a widget or other embed code, the main problem that arises very fast is that you can’t communicate between the iFrame and parent window hosting website. This behavior is designed on purpose to create a “shield” or a “barrier” between one site and another one, to prevent the infamous cross-site scripting attacks.
Continue reading