I have used the jQuery dialog code so that I can prompt my user. Is there a way to catch if the user clicks the close button (the 'X' in the top right? Thanks.
You shuold be able to just catch the beforeclose event (docs to be found here).