How would you set the default value of a form text field in JavaScript?
document.getElementById("fieldId").value = "Value";
or
document.forms['formId']['fieldId'].value = "Value";
document.getElementById("fieldId").setAttribute('value','Value');