title: How to block users from closing a window in Javascript?
body: <p>Is it possible to block users from closing the window using the exit button <kbd>[X]</kbd>? I am actually providing a close button in the page for the users to close the window.Basically what I'm trying to do is to force the users to fill the form and submit it. I don't want them to close the window till they have submitted it.</p>
  <p>I really appreciate your comments, I'm not thinking of hosting on any commercial website. Its an internal thing, we are actually getting all the staff to participate in this survey we have designed....</p>
  <p>I know its not the right way but I was wondering if there was a solution to the problem we have got here...</p>