Many times we use the iframes in site for loading the some extra content. Some time we need trigger events when iframes are loaded completely in browser. Here we check iframes loaded.
iframes are loaded completely in browser
In webpage loading Iframe and controlling site UI is very important.
This script is able to check local or cross domain iframe is loaded or not.
I tested following script with various browsers and OS. So there is no cross browser issue.
[viral-lock message=”Code is Hidden! It’s Visible for Users who Liked/Shared This article on Facebook or Twitter or Google+. Like or Tweet this article to reveal the content.”]
We have javascript code for how to send a variable value from an Iframe back to its parent? If you want fetch the variable value or send variable to parent page.
how to send a variable value from an Iframe back to its parent?
Use following code:
In Parent page use this copy paste folliwing javascript.