| Programming C# C++ (7) Delphi (617) Java (8) JavaScript (31) Document (8) Events (8) ExtJS (9) Strings (3) perl (9) php (4) VBScript (1) Visual Basic (1) New related comments Number of comments in the last 48 hours How to prompt the user with an inputbox in Javascript |
Avoid that a HTML FORM is submitted twice
(2 votes). Leave comments and/ or rate it.
Question: What is the best way to make sure a user does not submit a form twice?Answer: The easiest way: Disable the submit button in the onclick() event. See the code for that in the box below.You can also put some code in the form's onsubmit() event, as the second code snippet shows.
Comments:
| ||||||||||||||||||