autosave

I am a beginner in Script Case! Is it possible to create an ajax onchange routine that saves the record automatically?