document.forms['formname'].elements['fieldname'].value = someJavaScriptValue; document.forms['formname'].submit();