Click to See Complete Forum and Search --> : Access function inside an iFrame


sharapov
05-22-2003, 09:46 PM
How can I access function located inside an iFrame. In other words, I have a page with an iframe in it. the iframe has a function. the main page has a button. What I want to do is when user presses on the button the function inside an iframe should execute.
I tried to accesess an iframe the following way without any luck.


document.frames("myiFrame_name").document.some_function();


Can anybody help?

pyro
05-22-2003, 10:02 PM
Try it this way:

top.frames["myIframes_name"].some_function();