The only way is with the "onUnload" attribute of the "body" command. You can cause alerts to appear, but trying to open a popup window will undoubtedly fail or cause problems with the vast majority of users. That is because popups are annoying and frequently blocked. I would strongly suggest you find another approach.
tgreer
Made Her Cry
2,118 posts since Dec 2004
Reputation Points: 227
Solved Threads: 37
If a user closes their browser window or navigates to a different page, then that's what the user wants to do. Anything that interferes with that process is going to cause irritation. The user should only be presented with a survey if they click a link to a survey.
tgreer
Made Her Cry
2,118 posts since Dec 2004
Reputation Points: 227
Solved Threads: 37