I have an iframe and I am using the onbeforeunload to prevent data loss. What I need to do is set a variable called save to 0 after any change is made within the frame.
I tried this but it doesn't work: document.observe('change', function(){ save=0 }); How can I accomplish this task? Is it possible to observe for any change made? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---