Intenta esto
Código HTML:
Ver original function checkSubmit() {
document.getElementById("subir").value = "Enviando...";
document.getElementById("subir").disabled = true;
submit();
return true;
}
<form name="form1" method="post" action="subiendo.php" onsubmit=" return checkSubmit()"> <b>Campo de tipo texto:
</b> <input type="text" name="cadenatexto" size="20" maxlength="100"> <input type="hidden" name="MAX_FILE_SIZE" value="200000000"> <b>Enviar un nuevo archivo:
</b> <input name="userfile" type="file"> <input name="subir" type="submit" id="subir" value="Enviar">