Intro
Article title and it’s meaning is maybe a little dubious for some people, so let me explain. What I want to present to you today is a neat trick to stop users from leaving a web form without submitting data.
Some of you experienced similar trick if you are using gmail. This message appears when you try to leave a page when there is small loading note present on top of the screen, this note shows when you are preforming some action (for instance: deleting or moving a lot of emails). Although i don’t know how they coded this, the principle should be the same as it is explained in this article.