Javascript Validation

without using any button i think its unable to do java script
validation …
If it possible let me know . i using observe form and field .