Javascript & iframes

C

Carl

I want to load a javascript file on a root page with various iframes,
then call the javascript functions from the root page to be displayed
in the iframes. Any idea how to do this?
 
I

Ivo

Carl said:
I want to load a javascript file on a root page with various iframes,
then call the javascript functions from the root page to be displayed
in the iframes. Any idea how to do this?

Both the script and calls are on the same page? That 's business as usual,
isn't it?
To call a function scripted in a parent from within a framed document, try

if (parent.myfunction) parent.myfunction(myvar);

The if-statement checks whether the function actually exists before calling
it. Once you know the various required files have loaded, this may not be
necessary.
HTH
Ivo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top