Hello,
I have the parent window is a frame. By clicking on a href of this window, another window will popup. After the changes are saved, the popup window will close and the parent window will be reloaded.
The thing is I can only do this once. The second time I do it the parent window couldn't reload. It just hangs there forever.... (blank screen)
Here is the script I use:
Can someone please show me how to get it work?
Thanks
-kendel
I have the parent window is a frame. By clicking on a href of this window, another window will popup. After the changes are saved, the popup window will close and the parent window will be reloaded.
The thing is I can only do this once. The second time I do it the parent window couldn't reload. It just hangs there forever.... (blank screen)
Here is the script I use:
Code:
<input type="button" value="Save" onClick="SubmitForm();>
<script language="JavaScript">
function SubmitForm() {
document.form1.submit();
window.opener.location.reload();
window.close();
}
</script>
Thanks
-kendel