I struggled with this problem for a while and finally found a rocksolid solution through a posting by Bobince in Stackoverflow (
here
):
Instead of searching the function from the parent side, it is much saver and more predictable to hand over a function object from the IFrame side. This also makes it very easy to check if the IFrame function has already loaded. It works like a charm in Chrome, FF, IE 9, 8 and even 7.
Here is an example:
TESTouter.html
Copy code
TESTinner.html
Copy code
Cheers, Jörg.