How to handle cancellation for the jquery unload / beforeunload event? -


i using beforeunload event show loading spinner.

how can can handle fact user canceling action of leaving current page clicking cancel in address bar of browser or pressing escape key?

for example in case stop showing loading spinner.


Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -