Unless I'm mistaken (and could be, since I haven't javascripted in a while), doesn't it matter which browser you are doing it for? (like, aren't the DOM's different for IE and mozilla?)
I think the w3c compliant version is:
document.getElementById('textboxnamehere').value="text to display";