You can use the onbeforeunload or onunload event to trap the page being left but there's no specific way to know if it was because of the back button or just the browser going elsewhere or being closed.
A popup now though will be blocked by most blockers including IE6 in normal mode as it is event triggered rather than user initiated.
Please don't mark posts as Urgent, especially all your posts.
Everyone's problems are urgent to them and you could easily have Googled for this if it were that important.
--
Joe (
Microsoft MVP - XML)