Please do a search- how to have code inside a DHTML window call a function from the opening parent window has been answered many times. Regarding your question, assuming you've opened your window using something like:
Code:
var mywindow=dhtmlwindow.open("mybox", "iframe", "test.htm", "Test site", "width=590px,height=350px,resize=1,scrolling=1,center=1", "recal")
On test.htm, the code to close this DHTML window would be:
Code:
parent.mywindow.close()
In other words, add "parent." in front of the DHTML window's variable to refer to it from the DHTML window page. Same goes for accessing variables in the parent window.
Bookmarks