Maybe set a hidden field up in the form, and have an onChange refer to a function that will update that hidden field so that if it changes it would change it from change=no to change=yes. Then, put an onExit (or onUnload...can't remember which off the top of my head), to refer to another function that will check this field. If it's change=no, then it closes. If it's change=yes, then it will alert the user with a yes/no box. Then go from there.
HTH. Scott > -----Original Message----- > From: Tangorre, Michael [mailto:[EMAIL PROTECTED] > Sent: Monday, February 24, 2003 10:11 AM > To: CF-Talk > Subject: OT - JS Question > > > Hey everyone, sorry for the OT post, but I figure someone > might have a solution to my problem. > > I need a way to alert the user that they have made changes to > one or more form fields if they attempt to exit the page > before saving. > > does anyone know of a quick solution to this? > > Thanks, > > Mke > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

