~J20a~
05-28-2003, 07:27 PM
Im not sure what it is but what is the code for when you click on a text area or something and text in there dissapears ready for you to type in??
Sometimes see it in guestbooks and email forms
amicus
05-28-2003, 09:23 PM
here's the script, put the script into the head and use the 'onfocus' event in the input
(script)
function clearField( fieldName ) {
if ( fieldName.value == "Enter Text Here" ) {
fieldName.value = "";
}
}
(tag)
<input type="text" name="editBoxName" value="Enter Text Here" onfocus="clearField( this )">