Sorry. You were right to be using onblur
and it was my error to try to change that to onchange
. Using onfocus
, however, *IS* better than onclick
because the user might arrive at the input field using just the TAB key, for example.
<input class="inp" value="First Name" name="first_name"
onfocus="if(this.value=='First Name') this.value=''; "
onblur="if(this.value=='') this.value = 'First Name';"
style="padding:2px 10px 0px 10px;" type="text" />