Posted By:
Dave_Eaves
Posted On:
Monday, April 2, 2001 09:42 AM
See this answer for how to post a form to a new window.
http://www.jguru.com/forums/view.jsp?EID=390453
The secret to closing the window without having a confirmation message appear is to name the new window and then have the window that created it close it.
Window A opens Window B and gives it a name (e.g. windowB);
Put a function in your calling window that closes the window you opened (e.g. closeChildWin). Put a function in the page that serves as the response from your cgi program.
function in Window A
function closeChildWindow()
{
windowB.close();
}
function in Window B
function pageLoad()
{
// Call this onLoad function onLoad
parent.closeChildWindow();
}