Calling a function in an iframe from a parent in firefox

Posted by wyatt on Stack Overflow See other posts from Stack Overflow or by wyatt
Published on 2010-01-21T00:48:42Z Indexed on 2010/05/16 17:30 UTC
Read the original article Hit count: 298

Filed under:
|
|
|

I'm trying to call a function, test(), of an iframe from the parent document using the code

subframe.test();

subframe refers correctly to the iframe, alert(subframe) returns [object HTMLIFrameElement], and the function runs in both IE7 and opera (9.23), but not firefox (3.0), chrome (3.0) or safari (3.03 beta windows). I assume these browsers support the functionality, so wondering if perhaps I'm using an incorrect call which IE and Opera support anyway, which wouldn't surprise me.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about firefox