~ overflow ~

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();

Leave a Comment :, , , , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!