Possible Duplicate:
Javascript To Get An Alert When Closing The Browser Window
I have a legitimate reason for asking this, I have a web app that manages a large database and the pages for modifying lookup tables pop up in separate windows. I would like be able to remind users if there are changes they have made to the form that haven't been saved to the database, and give them the option to do so, even if they click the "X" to close the window. Is this possible?