Sometimes, you will need to embed an iframe in your site. What happens if you want to communicate data between your site and an iframe?
So, if you are thinking about that, then this posts is for you ^^
We will have two way iframe communication. The main difference between the two pages (parent.html, iframe.html) is the method of sending messages.
Recieving messages is the same in both.
- Send messages to an iframe using
- Recieve messages from an iframe using
- Send messages to parent window using
- Recieve messages from parent window using
Hope this posts is useful for you ^^
- Two way iframe communication