Forum Moderators: open
Inline cobble:
<input type="submit" onclick="this.disabled=true;" value="Submit">
Better would be to put the event handler on the form, using onsubmit to trigger some form validation function, then at the end of that function,
document.getElementById('submitButton').disabled=true;
<input type="submit" id="submitButton" value="Submit">
Take care not to ID the button reserved words, like "submit".