If the iframe when not seen is visibility hidden, as opposed to display none, things that take place on it are more available. Like if it is visibility hidden and absolutely positioned too far to the top and left to be seen, an alert fired from it will still be seen as if it were on the top page.
Now, if the page in the iframe gets AJAX imported content, that process will fire an onreadystatechange event for the import. If that event's function can be edited by you, you can make it fire an alert on success (readyState === 4). As long as everything is on the same domain, you can even make that alert's firing also be contingent upon the style of the iframe on the parent:
Code:
parent.reference_to_the_iframe_as_an_element.style.property === 'value'?
Like if it can be seen, don't alert, if not, then do alert.
Bookmarks