Like every other web developer on the planet, I have an issue with users double clicking the submit button on my forms. My understanding is that the conventional way to han
document.getElementById('form1').onsubmit = function() { document.getElementById('btn').disabled = true; };