If you are asking "How do I make a text field invisible upon the page loading?" then instead of a plain <body> tag, use <body onload="hideField()">
If your not asking that, and your asking "How do I make a text field disappear when I press the button" use the code I gave you above
<input type="button" id="hideField" onclick="hideField()" />