When I submit a form is there a way to close the existing window and open a new window at the same time?
close window
<form method="post">
<input type="button" value="Close Window"
onclick="window.close()">
</form>
open window
<form>
<input type="button" value="Open Window"
onclick="window.open('yourfile.htm')">
</form>
Is there a way to do this together? open a new window and close an existing window simultaneously?
close window
<form method="post">
<input type="button" value="Close Window"
onclick="window.close()">
</form>
open window
<form>
<input type="button" value="Open Window"
onclick="window.open('yourfile.htm')">
</form>
Is there a way to do this together? open a new window and close an existing window simultaneously?