Javascript window.close(); question

Brian07

Senior member
Oct 13, 1999
847
0
76
If have a site that contains 4 nested frames inside a window. Sometimes a pop up is launched to allow users to view process steps associated with a particular task they want to perform. How do I reference the main window from anywhere on the site to use the javascript close(); methold? I can use parent.close(); on the first level frame and the browser will succesfully close. If I stick this in other places (nested frames or pop ups) I can't get it to work. I've tried windowname.close(); and its not working, it will only close the window housing the close command. Any help?