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

php - Embed BBCode within itself not working -

three.js - how to load gltf in three JS -

sql server - T-SQL: Access DB objects in same schema without qualifying? -