Click to See Complete Forum and Search --> : Really quick
jubile
07-25-2003, 03:00 PM
Just need to know how to make text imput forms erase their value once clicked on. For example, in a guestbook, a form with value="name" which when clicked erased "name" from the box so it would not interfere with the user typing in their name.
Nevermore
07-25-2003, 03:05 PM
<input type="text" value="name" onfocus="this.value='';">
xataku_nakusute
07-25-2003, 03:06 PM
<script type="text/javascript">
function erase()
{
document.formname.inputfieldname.value = "";
}
</script>
<form name="formname">
<input type="text" name="inputfieldname" value="name" onfocus="erase(); return false">
</form>
jubile
07-25-2003, 03:07 PM
Always so helpful. Bueno.