I have a popup window that allows the user to edit a record. There is a save and close button on it. The parent page can take a long time to reload. So I want to give them the option to close the window with the Upper Right X and not have it reload. I tried:
function btnClose_OnClick(blnReload) {
opener.popUpWindow = null;
if (blnReload)
window.opener.location=ParentPage.asp?' + Url;
window.close();
}
Then I have:
<BODY onUnload="javascript:btnClose_OnClick(false);">
The close button has the following code:
onclick='btnClose_OnClick(true)'
It need to work in both IE 5.0 and NS 4.5 and greater.
Thanks
Paul
function btnClose_OnClick(blnReload) {
opener.popUpWindow = null;
if (blnReload)
window.opener.location=ParentPage.asp?' + Url;
window.close();
}
Then I have:
<BODY onUnload="javascript:btnClose_OnClick(false);">
The close button has the following code:
onclick='btnClose_OnClick(true)'
It need to work in both IE 5.0 and NS 4.5 and greater.
Thanks
Paul