Form.Observer []
is your friend



On Thu, Apr 23, 2009 at 9:11 AM, Chris <> wrote:
> Hi all,
> I want to add some sort of Saving-Reminder to forms on my page. The
> process would be roughly the following:
> 1. I fill out a form element (Input or Textarea, doesnt really matter)
> 2. I click on a link that takes me away of the form (lets say from
> forms.html to index.html)
> 3. The Saving-Reminder sees that there are changed values in my form
> and I seem to leave and shows me a confirm box (Something like "Form
> data was not saved. Really exit this page?").
> My idea for such a feature would be to attach a listener to all links
> on the page and to all form elements (or is there a onchange-Event for
> forms directly?). Are there any better ways to archive this task?
> >

You received this message because you are subscribed to the Google Groups 
"Prototype &" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to