What script can I use that, when a text field is click on, the value text disappears and when someone clicks put of the text field, the value text comes back?
There is 3 parts to this code, The JavaScript (within the head): [CODE]<SCRIPT type="JavaScript"> <!-- Begin function placeFocus() { if (document.forms.length > 0) { var field = document.forms[0]; for (i = 0; i < field.length; i++) { if ((field.elements[i].type == "text") || (field.elements[i].type == "textarea") || (field.elements[i].type.toString().charAt(0) == "s")) { document.forms[0].elements[i].focus(); break; } } } } // End --> </script>[/CODE] The Body: [CODE]<body OnLoad="placeFocus()">[/CODE] And the Text Feild: [CODE]<input name='answer' value='Type Answer Here!' onfocus='if(this.value=="Type Answer Here!")this.value="";' type='text'>[/CODE]