How would you set the default value of a form <input> text field in JavaScript?
<input>
This is one way of doing it:
document.getElementById("nameofid").value = "My value";