Hello,
I have a form that I am submiting. What I want is to call "window.location.replace" when form is submited to prevent users from going back to the form by pressing back button. Below is the code I use, however when I submit the form I can still use back button to go the form. Can anybody help?
I have a form that I am submiting. What I want is to call "window.location.replace" when form is submited to prevent users from going back to the form by pressing back button. Below is the code I use, however when I submit the form I can still use back button to go the form. Can anybody help?
Code:
<form onsubmit="window.location.replace('1.php');" method="POST" action="3.php">
<select size="1" name="D1"></select>
<input type="submit" value="Submit" name="B1">
<input type="reset" value="Reset" name="B2">
</form>