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