i believe that i have to use an array but im not sure where it should be placed and how it should look. im working with javascript and am kinda new at it. should the array be in the tags? or the tag? or should it be inside of the tags but outside of the other two? im lost. should the array be written in just the parent file or the child file? or both? i have created two different pages and now i want the button on one page to return the other page and the button on the child page to close the window. which i think involves the close() option since i used the open() to bring up a new window.
Share
It is unclear what you mean. The way one window accesses another window’s properties depends on how they relate; from “child” frame to parent, from parent to “child”, from “child” to “sibling”…
If you want to access another frame from within a frame, you’re probably best off giving the other frame an id and using something like
parent.getElementById("yourId").contentWindow. This will give you the other frame’s window object, on which you can callclose().I think this link explains how to access windows, frames and parents.