View Full Version : Calling Outside Functions

Apr 10th, 2005, 06:16 AM
Can one call a function outside of the current window. I'm using a frame system, and have two frames: toc, and main. I want to call a function from toc in main.

Here's the code:

document.write('<center><input type="button" value="Finished" onClick="parent.toc.submit();"></center></form>');

It's under a form, so that's why I'm using a </form>. Any help would be appreciated.

Mr J
Apr 10th, 2005, 09:01 AM


where formName is the name of your form