Javascript – How to prevent double click on submit button in chrome
I want to disable submitting form twice. Users often double click on submit button and then form is submitted twice. I already tried following Javascript, but does not work: const btn = document.querySelector("#buttonid"); btn.addEventListener("dblclick", (e) => { e.preventDefault(); }); const…