W
Wendy S
I'm trying to make sure that a form gets submitted when the person leaves
this field.
<input type="text" name="prospectNameOrId" size="50" value=""
onblur="setUserAction('Add Prospect'); document.forms[0].submit();">
In IE6, I get 'Object doesn't support this property or method'. I'm using
document.forms[0] elsewhere, and I have found examples on the web using this
syntax, so I'm not sure what the problem is. Can I not do this in onblur?
Is there a better way to do it? (I'm a Java programmer, not too experienced
in JavaScript.)
Thanks,
Wendy in Chandler, AZ
this field.
<input type="text" name="prospectNameOrId" size="50" value=""
onblur="setUserAction('Add Prospect'); document.forms[0].submit();">
In IE6, I get 'Object doesn't support this property or method'. I'm using
document.forms[0] elsewhere, and I have found examples on the web using this
syntax, so I'm not sure what the problem is. Can I not do this in onblur?
Is there a better way to do it? (I'm a Java programmer, not too experienced
in JavaScript.)
Thanks,
Wendy in Chandler, AZ