Menu
Cheers all,
I found this code online for preventing a form from being submitted twice via a double click. It works, but I’ve a question as to how it works since I’m not stating in code anywhere that it is JavaScript code.
Could it be the browsers are intelligent enough to know it is JS?
<input type=”submit” name=”submit” onclick=”this.disabled=true;this.value=’Submitting…’; this.form.submit();” />
I do not say anywhere, “Hey, this section is JavaScript”, so how does this work?
Thanks,