Matthew256 said the following on 10/30/2006 11:56 AM:
> How can I submit this form on criteriaBlur?
>
> <form>
> <input type="text" name="criteria1" onblur="criteriaBlur(this);">
> </form>
>
> function criteriaBlur( obj ) {
> if( ... ) {
> //submit form
> }
> }
Give your form an ID and then submit() the form:
document.forms['formID'].submit();
But, for the record, that is a dumb way to submit a form.
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ -
http://jibbering.com/faq
Javascript Best Practices -
http://www.JavascriptToolbox.com/bestpractices/