Hello good pple of the forum, i have a pop up window window that contains a form. Now what i want to do is to close up the pop up window when the information has been submitted and also refresh the parent window where the pop window was generated from.( the parent window contains dynamic information that is submitted from the pop up window)
At this point in time, this what i used:
PHP Code:
<form id="form1" name="form1" method="post" action="addcomments.asp" onsubmit="window.opener.location.reload(true); window.close();"
However, this just works when i try it once, if i try submitting the form a second it won't refresh the dynamic data in my parent window.
What can i do.