D
DL
I have a server side page that would submit a form with id of "txt" to
itself for further process. And I would also like to reload the its
opener when it is closed by a user BUT NOT when the page is submitted
to itself.
What I tried to do is to determine if a form is submitted for the
parent reload trigger, please see the BODY tag part below. However
it's not working as expected, how come?
Thanks.
The page's HTML looks like this:
<html>
<body onunload="if (!document.forms['txt'].submit() && window.opener
&& !window.opener.closed {window.opener.location.reload(); }>
<form id="txt"....>
....
</form>
</body>
</html>
itself for further process. And I would also like to reload the its
opener when it is closed by a user BUT NOT when the page is submitted
to itself.
What I tried to do is to determine if a form is submitted for the
parent reload trigger, please see the BODY tag part below. However
it's not working as expected, how come?
Thanks.
The page's HTML looks like this:
<html>
<body onunload="if (!document.forms['txt'].submit() && window.opener
&& !window.opener.closed {window.opener.location.reload(); }>
<form id="txt"....>
....
</form>
</body>
</html>