The problem
Imagine you have one page (A) with an iframe (B) in it and you want an action taking place on B to have an impact on A. This will always work if A and B are on the same domain, but once they are on 2 differents domains it does not work anymore for security reasons.
The solution
We are going to use the postMessage API. Luckily for us, this API is available in all modern browser including IE8+. Continue reading