Hello all,

Why doesn't the below snippet replace the input value if the value is set to empty?

Code:
      function input_reset(obj){
        if (obj.length == 0){
          obj.value = obj.defaultValue;
        }
      }
I have a form element:
HTML Code:
<input type="text" name="email" id="go" value="your e-mail" onclick="input_focus(this)" onblur="input_reset(this)" maxlength="60"/>
I haven't done something right, apparently.