avoid going back in browser, and avoid pressing the same button twice


I have a problem, many times users press the button twice and that causes data inconsistency, or press one, go back and press the button again, then the key questions are: How to avoid more than one click in a button? How to avoid being able to go back on a web page?

asked by RSillerico 14.06.2016 в 00:12

1 answer


To disable the button you can support yourself from jQuery, a quick example:

        $(this).prop('disabled', true);

For your other question you might try to use this:

answered by 14.06.2016 в 01:33