Confirmation pop-up when exiting tab
We're going to see how to implement a confirmation pop-up when a user tries to leave the page which has an unsaved state or something processing in the background.
The beforeunload event is fired when the window, the document and its resources are ...
rahulism.hashnode.dev2 min read