The same script will work with the submit button as well as with the input button. HTML5: how do I disable all links after any one of them are clicked? Add this "honeypot" field to avoid spam by fooling scrapers. The Input Submit disabled property in HTML DOM is used to set or return the boolean value that represents a Submit field should be disabled or not. Form controls usually have an optional disabled attribute to make interacting with them impossible. Obviously if you're sending a file it will take longer. can provide an alternative URL for "Thank You" page. ,