It seems to conflict with an auto-focus function that I already set on the field.
When you enter the page, the autofocus kicks in.
BUT, the submit button is active. If you click outisde the field, then click back in, then the disablesend function works.
The auto focus function is:
Code:
function autofocus() {
document.getElementById("message").focus();
}
and it starts onload.
EDIT: Nevermind! I found the problem. I forgot to change one of the values. Thanks a lot for the script glenngv!