Tag: iframe
Calling a Javascript function from a different frame
by z3n on Jun.09, 2009, under Coding, Tips & Hints
Problem:
How to call a function from a different frame/iframe ?
Solution:
It depends where the function is, when it’s on the main frame, or if you’re calling a funcion that’s on _top from inside a iframe:
top.function();
If you’re calling a function from a frame to another:
parent.frames['frame_name'].function();
or
parent.frames[frame_number].function();