jQuery unload()
The jQuery unload() method is used to attach a function to run when a unload event occurs i.e when a The link is clicked, leaving the current page. Forward or back button is used. The new URL is typed in the address bar. The browser window is closed. The page is reloaded. Syntax: To trigger … Read more