There are several things wrong with this.
An input element declaration, is not javascript code, and should not be put inside <script> tags.
Input elements should probably be put inside a form (even if the form is never submit).
This means if you need to change the contents of the input, you can do:
function display() { var myInput = document.forms[0].input1; myInput.value = "You suck";}
Which should work, and uses only the so-called "DOM0" DOM functions, which work on practically any browser that has javascript support.<br><br>You will need to give the input a name.<br><br>Alternatively, you can give the input object and ID instead, and use document.getElementById() to find it. This is a "DOM1" method, but still supported by most browsers.<br><br>This method also alleviates the need to put the input inside a form.<br><br>Mark