I have a page that displays a pop up when a button is clicked. once theat popup window is closed how do i automatically refresh the main page
Printable View
I have a page that displays a pop up when a button is clicked. once theat popup window is closed how do i automatically refresh the main page
function UnloadRefresh(){
opener.location.reload(true)
}
<body bgcolor="#FFFFFF" onUnload="UnloadRefresh();">
This works fine, the only trouble is that the functions of my pop-up window requires that it submits several times before it finishes and each time it does so it refreshes main page.
is there a way to get around this, perhaps disabling the close button in the top and creating my own close hyperlinks?
can someone please tell me how to submit a form in a popup window back to the opener window?
i used window.opener.name="main";
and set the traget of form as main, and added a close.window() as an onclick.
Thanks for all your help everyone