WillowFae
04-16-2003, 10:06 AM
I have opened a new window (called "details") which amongst other things has a button on it. When the button is clicked I want the window that opened "details" to be reloaded with a new page and "details" to be closed.
Now I understand you can use window.opener() to refer to this main window but the code I've written doesn't seem to work. lt loads the new page fine, but does it in the "details" window.
Here is the function
function gotoEdit(id)
{
window.opener(location.href="admin.cfm?id=" + id + "&method=edit");
window.close();
}
Where am I going wrong?
Now I understand you can use window.opener() to refer to this main window but the code I've written doesn't seem to work. lt loads the new page fine, but does it in the "details" window.
Here is the function
function gotoEdit(id)
{
window.opener(location.href="admin.cfm?id=" + id + "&method=edit");
window.close();
}
Where am I going wrong?