If you have control over the iframe page (and the pages are on the same domain name), a strategy could be as follows:
- In the parent document, initialize a variable
var iFrameLoaded = false;
- When the iframe document is loaded, set this variable in the parent to
truecalling from the iframe document a parent’s function
- check the
iFrameLoadedflag using the
timerobject (set the timer to your preferred timeout limit) – if the flag is still false you can tell that the iframe was not regularly loaded.
I hope this helps.