[web] CAlling a javascript function in another frame

Started by
2 comments, last by lincsimp 18 years, 7 months ago
Hi How can I do this? I know parent.frames["name] lets me access the other frame, but how can I call a function in it?
Advertisement
Because of security reasons, I would be surprised if this could be done.
&#106avascript functions are normally properties of the "window" object. So you can just acll them as a method of the other frame's window object.<br><br>However, some security restrictions apply - I believe that the two frames have to be from the same site.<br><br>Mark
I found:

parent.frames['mainFrame'].FunctionName(args);

This topic is closed to new replies.

Advertisement